n = int(input())
count = 0

for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1

print(count) n = int(input()) n int(input()) int input() input count = 0 count 0 for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1 i range(n) range n data = int(input()) data int(input()) int input() input data = abs(data) data abs(data) abs data if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1 data == 2 data 2 count += 1 count 1 elif pow(2,data-1,data) == 1:
            count += 1 pow(2,data-1,data) == 1 pow(2,data-1,data) pow 2 data-1 data 1 data 1 count += 1 count 1 print(count) print count data = abs(data) abs(data) data count = 0 0 count data = int(input()) int(input()) data n = int(input()) int(input()) n count += 1 1 count count += 1 1 count
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1

print(count)