Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isPrime(n): return "YES" if 2 in [n, 2**n % n] else "NO"
- #print (isPrime(int(input())))
- print(*[(i, isPrime(i)) for i in range(1, 50)], sep = '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement