Advertisement
darya_leushkina

Untitled

Mar 30th, 2021
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. maximum = 0
  2. number = 0
  3. for i in range(120115, 120201):
  4.     total = 1
  5.     for div in range(1, i // 2 + 1):
  6.         if i % div == 0:
  7.             total += 1
  8.         if total >= maximum:
  9.             maximum = total
  10.             number = i
  11. print(number, maximum)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement