#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const double eps = 1e-9;
const int inf = 2000000000;
const long long infLL = 9000000000000000000;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  vector<int> v(n);
  for (auto i = 0; i < n; i++) cin >> v[i];
  sort((v).begin(), (v).end());
  int c = 0;
  while (1) {
    int x = *min_element((v).begin(), (v).end());
    int sum = accumulate((v).begin(), (v).end(), 0);
    for (int i = 0; i < v.size(); i++) {
      if (v[i] % x == 0) v[i] = 101;
    }
    if (sum == (n * 101)) break;
    c++;
  }
  cout << c << '\n';
  return 0;
}
