Advertisement
maxim_shlyahtin

36

Nov 20th, 2021
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. f, max_div, count, c = [], 0, 0, 0
  2. for i in range(394480, 394541):
  3.     for j in range(1, i + 1):
  4.         if i % j == 0:
  5.             f.append(j)
  6.     if len(f) > max_div:
  7.         max_div = len(f)
  8.     f.clear()
  9. print(max_div)
  10. for i in range(394480, 394541):
  11.     for j in range(1, i + 1):
  12.         if i % j == 0:
  13.             count += 1
  14.             f.append(j)
  15.     if count == 48:
  16.         c += 1
  17.         f = sorted(f)
  18.         print(c, f[-1], f[-2])
  19.     count = 0
  20.     f.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement