Advertisement
qekaqeka

code

Apr 10th, 2023
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def isPrimal(n):
  2.  
  3. for i in range(2, int(n**0.5)+1):
  4. if n % i == 0:
  5. return False
  6.  
  7. return True
  8.  
  9.  
  10. for z in range(69, 10000):
  11. n = z + z*2 - 1
  12. if isPrimal(n):
  13. print(z)
  14. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement