#include <bits/stdc++.h>
using namespace std;
bool vis[110];
void dark_knight() {
  long long n;
  cin >> n;
  long long arr[n];
  for (long long i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  long long ans = 0;
  for (long long i = 0; i < n; i++) {
    if (vis[i] == false) {
      for (long long j = i; j < n; j++) {
        if (vis[j] == false) {
          if (arr[j] % arr[i] == 0) {
            vis[j] = true;
          }
        }
      }
      vis[i] = true;
      ans++;
    }
  }
  cout << ans;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    dark_knight();
  }
  return 0;
}
