![]() |
![]() |
#1 |
Mar 2016
12 Posts |
![]()
My understanding is that GIMPS checks, and double checks each potential Mersenne prime. For the vast majority of cases - where the first check indicates it's not a prime, is the double check done the same way as the first run?
If so, wouldn't it be easier to create a database of primality counterexamples, that is, a known factor (not necessarily an exhaustive list of all factors) of each potential Mersenne prime, in which case the double check becomes trivially easier - just divide by the factor and show it isn't prime? Would also be easier to demonstrate to skeptics of a number's particular non-primality, if you could easily cite a factor. Or am I completely wrong about how it works? |
![]() |
![]() |
![]() |
#2 |
Dec 2012
The Netherlands
24×101 Posts |
![]()
The main test used by GIMPS is the Lucas-Lehmer algorithm, which works as follows:
Suppose p is an odd prime number and we wish to know whether \(2^p-1\) is prime. We start with the number 4 (there are other values which work too) and then repeat the following p-2 times: square the current number then subtract 2, working modulo \(2^p-1\) (i.e. after each step, we divide by \(2^p-1\) and take the remainder). Then \(2^p-1\) is a prime number if (and only if) we get zero at the end. If \(2^p-1\) is not a prime number, then this test tells us that without producing a factor. |
![]() |
![]() |
![]() |
#4 | |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
11100001101012 Posts |
![]() Quote:
See the link that LaurV posted -- it answers the exact questions you have with more details (without being overwhelming [hopefully]). Last fiddled with by Dubslow on 2016-03-07 at 10:40 |
|
![]() |
![]() |
![]() |
#5 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
100100100000112 Posts |
![]()
In addition to what the others said I will provide a link to an article about the L-L test.
http://mersennewiki.org/index.php/Lucas-Lehmer_Test |
![]() |
![]() |
![]() |
#6 | |
Bemusing Prompter
"Danny"
Dec 2002
California
22·3·197 Posts |
![]() Quote:
Last fiddled with by ixfd64 on 2016-03-07 at 19:52 |
|
![]() |
![]() |
![]() |
#7 |
"NOT A TROLL"
Mar 2016
California
197 Posts |
![]()
M 1213 or 2^1213 -1 is the smallest Mersenne number not fully factored.
|
![]() |
![]() |
![]() |
#8 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2×4,663 Posts |
![]() |
![]() |
![]() |
![]() |
#9 |
Romulan Interpreter
Jun 2011
Thailand
220618 Posts |
![]()
Technically, with the restricted definition of mersenne numbers, he is right, because 1207 is not prime
![]() OTOH, I think he is only trolling. Last fiddled with by LaurV on 2016-03-11 at 05:46 |
![]() |
![]() |
![]() |
#10 |
"NOT A TROLL"
Mar 2016
California
197 Posts |
![]()
1207 is composite, I am talking about prime exponents, see.
|
![]() |
![]() |
![]() |
#11 | |
Einyen
Dec 2003
Denmark
BD716 Posts |
![]() Quote:
http://mathworld.wolfram.com/MersenneNumber.html |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"New" primality test/check | gophne | gophne | 272 | 2018-04-24 13:16 |
"Conjecture 'R Us" effort, come check it out! | gd_barnes | Sierpinski/Riesel Base 5 | 0 | 2007-12-18 20:43 |
Speeding up double checking when first test returns "prime" | Unregistered | PrimeNet | 16 | 2006-02-28 02:00 |
Would Minimizing "iterations between results file" may reveal "is not prime" earlier? | nitai1999 | Software | 7 | 2004-08-26 18:12 |
suggestion: "check exponent status" page | ixfd64 | Lounge | 3 | 2004-05-27 00:51 |