n = int(input())

ans = 0
for x in (int(input()) for _ in range(n)):
    flg = True
    for y in range(2, int(x**0.5+1)):
        if x % y == 0:
            flg = False
            break
    if flg:
        ans += 1

print(ans) n = int(input()) n int(input()) int input() input ans = 0 ans 0 for x in (int(input()) for _ in range(n)):
    flg = True
    for y in range(2, int(x**0.5+1)):
        if x % y == 0:
            flg = False
            break
    if flg:
        ans += 1 x (int(input()) for _ in range(n)) flg = True flg True for y in range(2, int(x**0.5+1)):
        if x % y == 0:
            flg = False
            break
     y range(2, int(x**0.5+1)) range 2 int(x**0.5+1) int x**0.5+1 x**0.5 x 0.5 1 if x % y == 0:
            flg = False
            break
     x % y == 0 x % y x y 0 flg = False flg False break if flg:
        ans += 1 flg ans += 1 ans 1 print(ans) print ans flg = True True flg flg = False False flg ans += 1 1 ans ans = 0 0 ans n = int(input()) int(input()) n
n = int(input())

ans = 0
for x in (int(input()) for _ in range(n)):
    flg = True
    for y in range(2, int(x**0.5+1)):
        if x % y == 0:
            flg = False
            break
    if flg:
        ans += 1

print(ans)