Skip to content

Instantly share code, notes, and snippets.

@simin75simin
Created January 11, 2025 13:17
Show Gist options
  • Save simin75simin/8ca09c75c9366b9c8c1c168eca692cbb to your computer and use it in GitHub Desktop.
Save simin75simin/8ca09c75c9366b9c8c1c168eca692cbb to your computer and use it in GitHub Desktop.
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)
r%=m
print(r-1,end=', ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment