n = int(input())
c = 0
for _ in range(n):
        data = int(input())
        for i in range(2,data):
                if data%i == 0:
                        break
                c += 1
print(">%d" %c)

