mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software > Mlucas

Reply
 
Thread Tools
Old 2007-03-05, 08:31   #1
DeadSpam
 
Mar 2007

112 Posts
Question A quick question regarding iterations in Mlucas...

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
DeadSpam is offline   Reply With Quote
Old 2007-03-05, 12:08   #2
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

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
akruppa is offline   Reply With Quote
Old 2007-03-05, 13:05   #3
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2×3×13×83 Posts
Default

Quote:
Originally Posted by akruppa View Post
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
Unless you consider number of digits ~= number of iterations * log2
"something to do with it" :)
davieddy is offline   Reply With Quote
Old 2007-03-05, 13:22   #4
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

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
akruppa is offline   Reply With Quote
Old 2007-03-05, 14:06   #5
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

11001010010102 Posts
Default

I shall allow "almost" to excuse you:)
davieddy is offline   Reply With Quote
Reply



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

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


Sat Jul 17 06:15:15 UTC 2021 up 50 days, 4:02, 1 user, load averages: 1.31, 1.22, 1.29

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.