#include <bits/stdc++.h>
using namespace std;
int arr[105];
int cnt[105];
int main() {
  int n, i, j, k, x, y, ans, curr, temp, last, m;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d", &arr[i]);
    cnt[arr[i]] = 1;
  }
  ans = 0;
  for (i = 1; i <= 100; i++) {
    if (cnt[i] == 1) {
      ans++;
      for (j = 1; j <= 100; j++) {
        if (j % i == 0 && cnt[j] == 1) {
          cnt[j] = 0;
        }
      }
    }
  }
  printf("%d\n", ans);
  return 0;
}
