문제 실패
N = int(input())
arr = list(map(int, input().split()))
count = 0
def sosu(num):
answer = False
if (num % 2 != 0 and num % 3 != 0 and num % 5 != 0 and num % 7 != 0 and n != 1 or num in (2,3,5,7)):
answer = True
return answer
for i in arr:
if (sosu(i) == True):
count += 1
print(count)
N = int(input())
arr = list(map(int, input().split()))
def sosu(num):
answer = False
cnt = 0
for i in range(2, num+1):
if (num % i == 0):
cnt += 1
if (cnt == 1):
answer = True
return answer
count = 0
for j in arr:
if sosu(j):
count += 1
print(count)