Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isPrimal(n):
- for i in range(2, int(n**0.5)+1):
- if n % i == 0:
- return False
- return True
- for z in range(69, 10000):
- n = z + z*2 - 1
- if isPrimal(n):
- print(z)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement