#Prime Numbers ?´???°
c = 0
for i in range(int(input())):
    n = int(input())
    for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            break
    else:
        c += 1
print(c) c = 0 c 0 for i in range(int(input())):
    n = int(input())
    for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            break
    else:
        c += 1 i range(int(input())) range int(input()) int input() input n = int(input()) n int(input()) int input() input for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            break
    else:
        c += 1 i range(2, int(n ** 0.5 + 1)) range 2 int(n ** 0.5 + 1) int n ** 0.5 + 1 n ** 0.5 n 0.5 1 if n % i == 0:
            break
     n % i == 0 n % i n i 0 break c += 1 c 1 print(c) print c n = int(input()) int(input()) n c += 1 1 c c = 0 0 c
#Prime Numbers ?´???°
c = 0
for i in range(int(input())):
    n = int(input())
    for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            break
    else:
        c += 1
print(c)