Skip to content
Snippets Groups Projects
Commit b6128aaa authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Stashed cleanup

parent 2a456010
Branches master
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
from __future__ import division
from utils import is_prime, nprimes
print list(nprimes(15499))
import sys; sys.exit()
#print list(nprimes(15499))
#import sys; sys.exit()
def times(a, b):
return a * b
......@@ -24,14 +24,13 @@ def phi(n):
def resilience(d):
return phi(d) / (d - 1)
d = 30
while True:
for d in nprimes(15499):
print d,
res = resilience(d)
if res < 15499 / 94744:
print d
break
print res, 15499 / 94744
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment