#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int n, a[N], color[N], cnt = 1;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  sort(a + 1, a + 1 + n);
  color[1] = a[1];
  for (int i = 2; i <= n; i++) {
    bool flag = false;
    for (int j = 1; j <= cnt; j++)
      if (a[i] % color[j] == 0) flag = true;
    if (!flag) color[++cnt] = a[i];
  }
  printf("%d\n", cnt);
  return 0;
}
