View Single Post
Old 2020-08-02, 18:27   #6
Viliam Furik
 
Viliam Furik's Avatar
 
"Viliam Furík"
Jul 2018
Martin, Slovakia

2×11×31 Posts
Default Python code

My slow but simple Python code in its entirity:
Code:
s = 4
for a in range(2 ** 37 + 1):
    s = (s ** 2 - 2) % (2 ** 37 - 1):
    if s == 14:
        print(a)
Viliam Furik is offline   Reply With Quote