c = 0
while True:
    try:
        n = int(input())
    except EOFError:
        break
    c += 1
    for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            c -= 1
            break
print(c) c = 0 c 0 while True:
    try:
        n = int(input())
    except EOFError:
        break
    c += 1
    for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            c -= 1
            break True try:
        n = int(input())
    except EOFError:
        break
     except EOFError:
        break
     break n = int(input()) n int(input()) int input() input c += 1 c 1 for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            c -= 1
            break 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:
            c -= 1
            break n % i == 0 n % i n i 0 c -= 1 c 1 break print(c) print c c = 0 0 c c += 1 1 c n = int(input()) int(input()) n c -= 1 1 c
c = 0
while True:
    try:
        n = int(input())
    except EOFError:
        break
    c += 1
    for i in range(2, int(n ** 0.5 + 1)):
        if n % i == 0:
            c -= 1
            break
print(c)