import math
def isPrime(number):
    for i in range(2,math.floor(math.sqrt(number))+1):
        if number%(i)==0:
            return False
    return True
N=int(input())
numbers=[]
for i in range(N):
    numbers.append(int(input()))
    pass
count=0
for number in numbers:
    if isPrime(number):
        count+=1
print(count) import math math def isPrime(number):
    for i in range(2,math.floor(math.sqrt(number))+1):
        if number%(i)==0:
            return False
    return True isPrime for i in range(2,math.floor(math.sqrt(number))+1):
        if number%(i)==0:
            return False
     i range(2,math.floor(math.sqrt(number))+1) range 2 math.floor(math.sqrt(number))+1 math.floor(math.sqrt(number)) math.floor math floor math.sqrt(number) math.sqrt math sqrt number 1 if number%(i)==0:
            return False
     number%(i)==0 number%(i) number i 0 return False False return True True number number N=int(input()) N int(input()) int input() input numbers=[] numbers [] for i in range(N):
    numbers.append(int(input()))
    pass i range(N) range N numbers.append(int(input())) numbers.append numbers append int(input()) int input() input count=0 count 0 for number in numbers:
    if isPrime(number):
        count+=1 number numbers if isPrime(number):
        count+=1 isPrime(number) isPrime number count+=1 count 1 print(count) print count count+=1 1 count N=int(input()) int(input()) N def isPrime(number):
    for i in range(2,math.floor(math.sqrt(number))+1):
        if number%(i)==0:
            return False
    return True def isPrime(number):
    for i in range(2,math.floor(math.sqrt(number))+1):
        if number%(i)==0:
            return False
    return True isPrime numbers=[] [] numbers count=0 0 count
import math
def isPrime(number):
    for i in range(2,math.floor(math.sqrt(number))+1):
        if number%(i)==0:
            return False
    return True
N=int(input())
numbers=[]
for i in range(N):
    numbers.append(int(input()))
    pass
count=0
for number in numbers:
    if isPrime(number):
        count+=1
print(count)