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