def is_prime(number):
    """ ?????????????????´??°???????´???°???????????????????????? """
    if number == 2:
        return True
    if number < 2 or number%2 == 0:
        return False
    i = 3
    while i < (number**0.5) + 1:
        if number%i == 0:
            return False
        i = i + 2
    return True

COUNTER = 0
while 1:
    try:
        N = int(input())
        if is_prime(N):
            COUNTER += 1
    except EOFError:
        break

print(COUNTER) def is_prime(number):
    """ ?????????????????´??°???????´???°???????????????????????? """
    if number == 2:
        return True
    if number < 2 or number%2 == 0:
        return False
    i = 3
    while i < (number**0.5) + 1:
        if number%i == 0:
            return False
        i = i + 2
    return True is_prime """ ?????????????????´??°???????´???°???????????????????????? """ if number == 2:
        return True
     number == 2 number 2 return True True if number < 2 or number%2 == 0:
        return False
     number < 2 or number%2 == 0 number < 2 number 2 number%2 == 0 number%2 number 2 0 return False False i = 3 i 3 while i < (number**0.5) + 1:
        if number%i == 0:
            return False
        i = i + 2
     i < (number**0.5) + 1 i (number**0.5) + 1 number**0.5 number 0.5 1 if number%i == 0:
            return False
         number%i == 0 number%i number i 0 return False False i = i + 2 i i + 2 i 2 return True True number number COUNTER = 0 COUNTER 0 while 1:
    try:
        N = int(input())
        if is_prime(N):
            COUNTER += 1
    except EOFError:
        break 1 try:
        N = int(input())
        if is_prime(N):
            COUNTER += 1
    except EOFError:
        break except EOFError:
        break break N = int(input()) N int(input()) int input() input if is_prime(N):
            COUNTER += 1
     is_prime(N) is_prime N COUNTER += 1 COUNTER 1 print(COUNTER) print COUNTER COUNTER = 0 0 COUNTER COUNTER += 1 1 COUNTER def is_prime(number):
    """ ?????????????????´??°???????´???°???????????????????????? """
    if number == 2:
        return True
    if number < 2 or number%2 == 0:
        return False
    i = 3
    while i < (number**0.5) + 1:
        if number%i == 0:
            return False
        i = i + 2
    return True def is_prime(number):
    """ ?????????????????´??°???????´???°???????????????????????? """
    if number == 2:
        return True
    if number < 2 or number%2 == 0:
        return False
    i = 3
    while i < (number**0.5) + 1:
        if number%i == 0:
            return False
        i = i + 2
    return True is_prime N = int(input()) int(input()) N
def is_prime(number):
    """ ?????????????????´??°???????´???°???????????????????????? """
    if number == 2:
        return True
    if number < 2 or number%2 == 0:
        return False
    i = 3
    while i < (number**0.5) + 1:
        if number%i == 0:
            return False
        i = i + 2
    return True

COUNTER = 0
while 1:
    try:
        N = int(input())
        if is_prime(N):
            COUNTER += 1
    except EOFError:
        break

print(COUNTER)