dxnge

tsk 8

Nov 11th, 2021 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def smpl(x):
  2.     for d in (2, int(x**0.5)+1):
  3.         if x % d == 0:
  4.             return False
  5.     return True
  6.  
  7.  
  8. cnt = 1
  9. for i in range(2_532_000, 2_532_160+1):
  10.     if smpl(i):
  11.         if i % 10 == 7:
  12.             print(cnt, i)
  13.             cnt += 1
  14.  
Add Comment
Please, Sign In to add comment