#include <bits/stdc++.h>
using namespace std;
long long int arr[105];
long long int mark[105];
int main() {
  long long int n;
  scanf("%lld", &n);
  for (long long int i = 0; i < n; i++) {
    scanf("%lld", &arr[i]);
  }
  sort(arr, arr + n);
  long long int ans = 0;
  for (long long int i = 0; i < n; i++) {
    long long int now = arr[i];
    if (mark[now] == 0) {
      ans++;
      for (long long int j = now; j <= 100; j += now) mark[j] = 1;
    }
  }
  printf("%lld\n", ans);
  return 0;
}
