Created
January 11, 2025 13:17
-
-
Save simin75simin/8ca09c75c9366b9c8c1c168eca692cbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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