![]() |
|
|
#1 |
|
Mar 2007
Estonia
2168 Posts |
Hello, I am in the process of rewriting some primality check proggies for myself.
Rabin-Miller is finished. Lucas-Lehmer is almost finished...only needs a rewrite in GMP(GNU BigNum lib) to support large integers. But now I am on Lucas-Lehmer-Riesel tests. The ordinary LL test is easy on the starting value, but for LLRs I could only find this on Wikipedia:
Any help? Thanks in advance, kuratkull |
|
|
|
|
|
#2 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
10110111111102 Posts |
can someone rewrite that thing on wikipedia
there have been a few wondering about this unfortunately i cant find the thread of the last conversation on thiss subject |
|
|
|
|
|
#3 | |
|
Feb 2007
24×33 Posts |
Quote:
http://www.mersenne.org/gimps/llrsource.zip on http://forums.amd.com/forum/messagev...&enterthread=y but that file has disappeared... is there a (c) issue? anyway, in Lucasian Criteria for the Primality of $\mathcal{N} = h \cdot 2^n - 1$ Hans Riesel Mathematics of Computation, Vol. 23, No. 108 (Oct., 1969), pp. 869-875 doi:10.2307/2004975 it is suggested to take (for odd k < 2^n >= 4) u0 = alpha^k+alpha^-k with alpha=(a+b sqrt(D))^2/r, (r/N)(a^2-b^2 D)/r=(D/N)=-1, r=|a^2-b^2 D|, N=k 2^n-1. PS: D is squarefree, (D/N) is the Legendre symbol. Riesel himself says that he tries out values of D to find a suitable one. Last fiddled with by m_f_h on 2008-03-04 at 18:59 |
|
|
|
|
|
|
#4 |
|
Mar 2007
Estonia
2×71 Posts |
Thanks m_f_h,
It's not very clear to me when I look it now, but I will give it another look tomorrow...it's late now :) Thanks again! |
|
|
|
|
|
#5 |
|
Feb 2007
1B016 Posts |
That's basically what is written on wikipedia... ;-)
I'm kidding - one could add these criteria from Riesel's Thm.5 of the cited article, but would this be useful/adequate for WP? I'll put a ref. to Riesel's article, though. PS: Finally I also found the src of llr - if I looked at the right place, there it is also done using a loop that essentially checks all possibilities until finding one verifying the criteria. PPS: the thread: http://www.mersenneforum.org/showthread.php?p=123605#12 - the issue ended with "...(and to help me understand what starting numbers to use)"... Last fiddled with by m_f_h on 2008-03-04 at 20:17 |
|
|
|
|
|
#6 |
|
Mar 2007
Estonia
2·71 Posts |
Ok, I looked at it now...and with a bit of fiddling, I'm sure I'd get it to work.
Your post hinted me to go to Jean's original page, and there was the source ;) Thanks. |
|
|
|
|
|
#7 | |
|
Mar 2007
Estonia
2×71 Posts |
Quote:
Besides D, I have the value N, k and n. But how do I get the values a, b and r? I cracked myself over this for some time, but I couldn't figure it out :( Thanks for any further help :) -kuratkull |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mfaktc not starting in Mac OSX | bayanne | GPU Computing | 0 | 2014-05-10 14:38 |
| Disk starting to go | Chuck | Hardware | 8 | 2013-05-20 06:40 |
| Starting new bases | MrOzzy | Conjectures 'R Us | 104 | 2010-03-18 22:11 |
| mprime starting | spaz | Software | 9 | 2009-05-03 06:41 |
| On the size of values to test by Factorazation Alg | ThiloHarich | Factoring | 6 | 2009-03-30 17:42 |