dxnge

tsk 18

Nov 12th, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. x, cnt, nums = 700000, 0, 0
  2. while nums < 5:
  3.     dls = {1, x}
  4.     for d in range(2, int(x**0.5)+1):
  5.         if x % d == 0:
  6.             dls |= {d, x//d}
  7.     if len(dls) > cnt:
  8.         cnt = len(dls)
  9.         nums += 1
  10.         print(x, len(dls))
  11.     x += 1
  12.  
Advertisement
Add Comment
Please, Sign In to add comment