def checker(x):
    if x == 2:
        return True
    if x < 2 or x % 2 == 0 :
        return False
    for i in range(2,int(x**0.5)+1):
        if x % i == 0 :
            return False
    return True

cnt=0
q=int(input())
for _ in range(q):
    v=int(input())
    if checker(v):
        cnt += 1
print(cnt) def checker(x):
    if x == 2:
        return True
    if x < 2 or x % 2 == 0 :
        return False
    for i in range(2,int(x**0.5)+1):
        if x % i == 0 :
            return False
    return True checker if x == 2:
        return True
     x == 2 x 2 return True True if x < 2 or x % 2 == 0 :
        return False
     x < 2 or x % 2 == 0 x < 2 x 2 x % 2 == 0 x % 2 x 2 0 return False False for i in range(2,int(x**0.5)+1):
        if x % i == 0 :
            return False
     i range(2,int(x**0.5)+1) range 2 int(x**0.5)+1 int(x**0.5) int x**0.5 x 0.5 1 if x % i == 0 :
            return False
     x % i == 0 x % i x i 0 return False False return True True x x cnt=0 cnt 0 q=int(input()) q int(input()) int input() input for _ in range(q):
    v=int(input())
    if checker(v):
        cnt += 1 _ range(q) range q v=int(input()) v int(input()) int input() input if checker(v):
        cnt += 1 checker(v) checker v cnt += 1 cnt 1 print(cnt) print cnt q=int(input()) int(input()) q cnt=0 0 cnt def checker(x):
    if x == 2:
        return True
    if x < 2 or x % 2 == 0 :
        return False
    for i in range(2,int(x**0.5)+1):
        if x % i == 0 :
            return False
    return True def checker(x):
    if x == 2:
        return True
    if x < 2 or x % 2 == 0 :
        return False
    for i in range(2,int(x**0.5)+1):
        if x % i == 0 :
            return False
    return True checker v=int(input()) int(input()) v cnt += 1 1 cnt
def checker(x):
    if x == 2:
        return True
    if x < 2 or x % 2 == 0 :
        return False
    for i in range(2,int(x**0.5)+1):
        if x % i == 0 :
            return False
    return True

cnt=0
q=int(input())
for _ in range(q):
    v=int(input())
    if checker(v):
        cnt += 1
print(cnt)