Advertisement
HuanMatus

Untitled

Jan 22nd, 2022
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. '''
  2. [2378109; 2378192]
  3. '''
  4. cnt = 0
  5. for i in range( 2378109, 2378192 + 1):
  6.     prostoe = 1
  7.     for j in range(2, int(i ** 0.5) + 1):
  8.         if i % j == 0:
  9.             prostoe = 0
  10.             break
  11.  
  12.     if prostoe:
  13.         cnt += 1
  14.         print(cnt, i)
  15.        
  16. '''
  17. 1 2378111
  18. 2 2378119
  19. 3 2378143
  20. 4 2378171
  21. 5 2378179
  22. 6 2378191
  23.  
  24. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement