Update 2015 solutions

This commit is contained in:
2024-10-20 15:19:25 -04:00
parent 87ab42743e
commit e73fa3bae7
16 changed files with 362 additions and 411 deletions

View File

@@ -4,6 +4,7 @@ import lib
data = int(open(0).read().strip())
part_1 = False
def calc(n):
fs = lib.prime_factors(n)
vs = set([1, n])
@@ -21,6 +22,7 @@ def calc(n):
r += e * 11
return r
for i in range(3, 10000000):
c = calc(i)
if c >= data: