maxi = 0 for i in range(84052, 84131): k = 0 for j in range(1, i + 1): if i % j == 0: k += 1 if maxi < k: maxi = k f = i print(maxi, f)