Skip to content

Instantly share code, notes, and snippets.

View simin75simin's full-sized avatar

simin75simin

View GitHub Profile
@simin75simin
simin75simin / 2015.ipynb
Created October 31, 2024 14:16
Some questions from Advent of Code 2015 (including 25 and 24 part 2)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from sympy import *
for n in range(2,14):
r=1
for p in primerange(n+1):
q=1
x=0
while p**q<=n:
x+=n//(p**q)
q+=1
r*=(x+1)