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