#include <bits/stdc++.h>
using namespace std;
int a[102];
int main() {
  int n, cont = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] != 0) {
      cont++;
      for (int k = i + 1; k < n; k++) {
        if (a[k] % a[i] == 0) a[k] = 0;
      }
    }
  }
  cout << cont << '\n';
  return 0;
}
