![]() |
![]() |
#1 |
Dec 2009
2710 Posts |
![]()
The test states that for n > 2,
F(n) is prime iff 5^((F(n)-1)/4) == sqrt(F(n)-1) (mod F(n)). <Thread posted on April 01, 2011. ![]() Last fiddled with by Arkadiusz on 2011-04-01 at 20:20 |
![]() |
![]() |
![]() |
#2 | |
"Forget I exist"
Jul 2009
Dartmouth NS
845010 Posts |
![]() Quote:
so you say: 5^(2^(2^n-2)) mod (2^(2^n)+1) = 2^((2^n)/2) according to my research. I'll have to think on this more, I'm not that advanced. Last fiddled with by science_man_88 on 2011-04-01 at 21:38 |
|
![]() |
![]() |
![]() |
#3 |
"Forget I exist"
Jul 2009
Dartmouth NS
2·52·132 Posts |
![]() |
![]() |
![]() |
![]() |
#4 |
"Forget I exist"
Jul 2009
Dartmouth NS
204028 Posts |
![]() |
![]() |
![]() |
![]() |
#5 |
"Forget I exist"
Jul 2009
Dartmouth NS
2·52·132 Posts |
![]() |
![]() |
![]() |
![]() |
#6 |
"Forget I exist"
Jul 2009
Dartmouth NS
210216 Posts |
![]() Code:
(13:56)>for(n=1,100,print1(isprime(F(n))",")) 1,1,1,1,0,0,0,0,0,0,0,0,0, *** isprime: user interrupt after 15,468 ms. (13:57)>for(n=1,100,print1(5^((F(n)-1)/4)%(F(n)) == sqrt(F(n)-1)",")) 0,0,1,1, *** _^_: user interrupt after 12,782 ms. it fails twice in the first 4. |
![]() |
![]() |
![]() |
#7 | |
"Forget I exist"
Jul 2009
Dartmouth NS
2·52·132 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fastest software for Mersenne primality test? | JonathanM | Information & Answers | 25 | 2020-06-16 02:47 |
What are the Primality Tests ( not factoring! ) for Fermat Numbers? | Erasmus | Math | 46 | 2014-08-08 20:05 |
Proof of Primality Test for Fermat Numbers | princeps | Math | 15 | 2012-04-02 21:49 |
A primality test for Fermat numbers faster than Pépin's test ? | T.Rex | Math | 0 | 2004-10-26 21:37 |
Two Primality tests for Fermat numbers | T.Rex | Math | 2 | 2004-09-11 07:26 |