Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def is_prime(num):
- if num < 2:
- return False
- for i in range(2, int(math.sqrt(num)) + 1):
- if num % i == 0:
- return False
- return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement