View Single Post
Old 2014-11-19, 10:20   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110000010112 Posts
Default

Put the Mersenne in a "helper file":

Code:
$ cat > helper.txt
2^3217-1
Code:
$ ./pfgw64 -t -hhelper.txt -q"1816*(2^3217-1)+1"
PFGW Version 3.7.7.64BIT.20130722.x86_Dev [GWNUM 27.11]

Primality testing 1816*(2^3217-1)+1 [N-1, Brillhart-Lehmer-Selfridge]                                    
Reading factors from helper file helper.txt
Running N-1 test using base 3                                                  
Calling Brillhart-Lehmer-Selfridge with factored part 99.66%
1816*(2^3217-1)+1 is prime! (0.0244s+0.0037s)

Last fiddled with by paulunderwood on 2014-11-19 at 10:22
paulunderwood is online now   Reply With Quote