dxnge

29

Dec 7th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. nums = []
  2. for i in range(1_000_000, 1_300_000):
  3.     if all(x not in str(i) for x in map(str, range(3, 10))) and sum(map(int,(list(str(i))))) % 10 == 0:
  4.         nums.append(i)
  5. srt = sorted(nums)[9::10]
  6. for i in srt:
  7.     dls = set()
  8.     for d in range(2, int(i**0.5)+1):
  9.         if i % d == 0:
  10.             dls |= {d, i//d}
  11.     print(i, len(dls))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment