#include <bits/stdc++.h>
int main() {
  int n, t, count, i, j;
  scanf("%d", &n);
  int num[n];
  count = 0;
  for (i = 2; i <= n; i++) {
    scanf("%d", &num[i]);
    t = sqrt(num[i]);
    for (j = 2; j <= t; j++) {
      if (num[i] % j == 0) {
        count++;
      }
    }
  }
  printf("%d", count);
  return 0;
}
