A Computing Network written in Java extremely inefficient.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/python
|
|
public=14012539
|
|
mod=4862802614
|
|
step = mod / 100
|
|
for j in range(0, 100):
|
|
print "Testing from", step*j, " to ", step*(j+1), " (", j, "%)"
|
|
for i in range(j*step, (j+1)*step):
|
|
if (( i * public ) % mod) == 1:
|
|
print i
|
|
break
|
|
|