[READ-ONLY] Mirror of https://github.com/shuuji3/competitive-programming. 馃洬 Codes submitted to competitive programming platforms
aizu-online-jadge aoj atcoder hackerrank leetcode
0

Configure Feed

Select the types of activity you want to include in your feed.

1import math 2 3 4def is_prime(n): 5 for i in range(2, int(math.sqrt(n))+1): 6 if n % i == 0: 7 return False 8 return True 9 10 11n = int(input()) 12count = 0 13for _ in range(n): 14 m = int(input()) 15 if is_prime(m): 16 count += 1 17print(count)