![]() |
|
|
#1 |
|
Mar 2007
112 Posts |
My question is this: is it 10M+ iterations for a mersenne prime in the Mlucas code, or is more on the order of 2 ** (exponent tested) -1 / 2?
Anyone know? Ed |
|
|
|
|
|
#2 |
|
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
The number of LL iterations to test a Mersenne number Mp (Mp = 2^p-1) is p-2. The number of decimal digits (10 million, or some such) has (almost) nothing to do with it.
Alex |
|
|
|
|
|
#3 | |
|
"Lucan"
Dec 2006
England
2×3×13×83 Posts |
Quote:
"something to do with it" :) |
|
|
|
|
|
|
#4 |
|
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
That's why I wrote "almost". They are related by a constant factor, but if someone is asking about the actual number of iterations, then p-2 is the proper answer, not the number of decimal digits, even though related by a constant factor.
It would be different if the question was "how does the number of iterations increase when the Mersenne number being tested increases?" Here it would make perfect sense to reply that it grows like the number of digits, because the question only asked for proportional growth. Alex |
|
|
|
|
|
#5 |
|
"Lucan"
Dec 2006
England
11001010010102 Posts |
I shall allow "almost" to excuse you:)
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A quick question | Pegos | Information & Answers | 6 | 2016-08-11 14:39 |
| Quick TF Question | Dubslow | GPU Computing | 2 | 2011-10-27 04:49 |
| Mlucas on HP-UX/PA-RISC setup question | smoky | Mlucas | 14 | 2009-05-05 15:40 |
| A Followup question on Mlucas... | DeadSpam | Mlucas | 41 | 2007-03-14 18:40 |
| Quick p-1 question | Unregistered | Software | 8 | 2006-10-13 23:35 |