View Single Post
Old 2021-08-19, 17:37   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3·1,291 Posts
Default

See the posts here. It should be relatively easy to take the expressive Pari/GP code and convert into Python,

The code there might be for Wagstaff numbers. I am sure someone here will point out the differences for it an that for Mersenne numbers.

Last fiddled with by paulunderwood on 2021-08-19 at 18:59
paulunderwood is offline   Reply With Quote