View Single Post
Old 2010-05-07, 13:55   #3
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

stupid mouse failure lol (using mousekeys).

(10:46) gp > for(n=1,10,for(k=1,10,if(isprime(k*2^n-1) && isprime(k*2^n+1),print(k"*"2"^"n"+ or -1"))))
2*2^1+ or -1
3*2^1+ or -1
6*2^1+ or -1
9*2^1+ or -1
1*2^2+ or -1
3*2^2+ or -1
9*2^3+ or -1
6*2^5+ or -1
3*2^6+ or -1
9*2^7+ or -1
(10:46) gp >

this what you want ?
science_man_88 is offline   Reply With Quote