Revision 68072bcfe1cea2c8026a76b01cdc4db3c1172d9c authored by Matt Caswell on 19 April 2016, 14:57:51 UTC, committed by Matt Caswell on 19 April 2016, 14:57:51 UTC
Reviewed-by: Rich Salz <rsalz@openssl.org>
1 parent 235f932
primes.py
primes = [2, 3, 5, 7, 11]
safe = False # Not sure if the period's right on safe primes.
muliplier = 1 if not safe else 2
for p in primes:
muliplier *= p
offsets = []
for x in range(3, muliplier + 3, 2):
prime = True
for p in primes:
if not x % p or (safe and not ((x - 1) / 2) % p):
prime = False
break
if prime:
offsets.append(x)
print(offsets)
print(len(offsets))
print(muliplier)

Computing file changes ...