#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int a[101];
signed main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + 1 + n);
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    if (!a[i]) continue;
    ans++;
    for (int j = i + 1; j <= n; j++) {
      if (a[j]) {
        if (a[j] % a[i] == 0) a[j] = 0;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
