mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   PRP testing (https://www.mersenneforum.org/showthread.php?t=18070)

pepi37 2013-04-08 23:46

PRP testing
 
[INDENT][B]Lucas-Lehmer Test[/B] (1930): Let [I]n[/I] be an odd prime. The Mersenne number M([I]n[/I]) = 2[I]n[/I]-1 is prime if and only if S([I]n[/I]-2) = 0 (mod M([I]n[/I])) where S(0) = 4 and S([I]k[/I]+1) = S([I]k[/I])2-2. [/INDENT](The proof of sufficiency is found on a [URL="http://primes.utm.edu/notes/proofs/LucasLehmer.html"]separate page[/URL].) [B]This test is exceptionally fast on a binary computer because it requires no division. [/B]

As I ( and if I ) understand correctly in process of prime search there is sieving , PRP and proof of prime with some software (LLR, PFGW)
All prime searchers do a deep sieve then immediately start llr testing.
Why is PRP step skipped if it is as quoted "[B]exceptionally fast [/B]"?
In any case it is sure faster then LLR ( or it is not)
I read that PFGW can do PRP test, but never sow that test was faster then LLR of same number.
Thanks for explanation.

axn 2013-04-09 03:38

[QUOTE=pepi37;336501][INDENT][B]Lucas-Lehmer Test[/B] (1930): Let [I]n[/I] be an odd prime. The Mersenne number M([I]n[/I]) = 2[I]n[/I]-1 is prime if and only if S([I]n[/I]-2) = 0 (mod M([I]n[/I])) where S(0) = 4 and S([I]k[/I]+1) = S([I]k[/I])2-2. [/INDENT](The proof of sufficiency is found on a [URL="http://primes.utm.edu/notes/proofs/LucasLehmer.html"]separate page[/URL].) [B]This test is exceptionally fast on a binary computer because it requires no division. [/B][/QUOTE]

This is not a PRP test. This is a primality proving test (like LLR test). This test is for mersenne numbers (2^p-1), while LLR is for Riesel numbers (k*2^n-1). There is another primality proving test called proth test for Proth numbers (k*2^n[COLOR="Red"]+[/COLOR]1). Both Riesel Number & Proth Numbers are supported by LLR [B]program[/B] (written by Jean Penne). And for their respective numbers, these tests are as fast or faster than a generic PRP test.

For numbers that are not of these forms, we'll do a PRP test followed by a more time consuming primality proving test. PFGW can do both of these.

[I am glossing over the addition of more supported forms in LLR program, and specialized PRP testers/provers for some other projects]

pepi37 2013-04-09 07:24

So in present time PRP test for Proth or Riesel numbers are slower then testing those numbers with LLR?

axn 2013-04-09 07:33

Correct (although not by much). Directly proving primality is the way to go for them.

pepi37 2013-04-09 07:41

Thanks Axn :smile:

henryzz 2013-04-09 16:21

The amount of multiplications for each test is roughly the same although doing those multiplications(ffts) is less efficient for non-mersenne numbers as more generic methods must be used.

pinhodecarlos 2013-04-12 09:42

[QUOTE=axn;336518]There is another primality proving test called proth test for Proth numbers (k*2^n[COLOR=Red]+[/COLOR]1). Both Riesel Number & Proth Numbers are supported by LLR [B]program[/B] (written by Jean Penne). And for their respective numbers, these tests are as fast or faster than a generic PRP test.
[/QUOTE]

Can a positive from a primality proving test be called a unique prime number?

Carlos


All times are UTC. The time now is 15:09.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.