AdventOfCode/2015/day20.py

9 lines
168 B
Python
Raw Normal View History

2018-12-04 15:57:16 +10:30
for i in range(1, 500001):
presents = 0
for n in range(1, i+1):
if i%n == 0:
presents += 10*n
if presents >= 33100000:
print(i, presents)
break