n = int(input())
count = 0
for i in range(n):
  x = int(input())
  for j in range(x):
    if x == 2:
      count += 1
    elif x % 2 == 0:
      continue
    else:
      if x % j != 0:
        count += 1
print(count)