#include <bits/stdc++.h>
using namespace std;
void PLAY() {
  cout << fixed << setprecision(10);
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
bool isprime1(long long n) {
  for (int i = 2; i * i <= n; i++) {
    if (n % i == 0) return false;
  }
  return true;
}
int main() {
  int n;
  cin >> n;
  bool vis[105] = {false};
  long long ans = 0;
  vector<long long> x(n), p;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
  }
  sort(x.begin(), x.end());
  x.erase(unique(x.begin(), x.end()), x.end());
  for (int i = 0; i < x.size(); i++) {
    if (!vis[x[i]]) {
      ans++;
      vis[x[i]] = true;
      for (int j = i + 1; j < x.size(); j++) {
        if (x[j] % x[i] == 0) {
          vis[x[j]] = true;
        }
      }
    }
  }
  cout << ans << endl;
  return 0;
}
