mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2005-11-30, 20:32   #12
xilman
Bamboozled!
 
xilman's Avatar
 
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

1075310 Posts
Default

Quote:
Originally Posted by philmoore
The benchmarks page: http://www.mersenne.org/bench.htm says that it would take a 3800 MHz Pentium-4 about 4050 years to do a LL test on a number of that size, and a Pepin test on F33 should be comparable. But a 4GB FFT size would create some problems. Interestingly enough, F31, which was considered out of reach before Alex Kruppa found a factor, would take on the order of 250 years according to the benchmarks page, which a multi-processor system could conceivably bring down to a few decades.
Aw, you spoilt it. You should have used spoiler tags.

As I said earlier, it's educational to perform the calculation for yourself.


Paul
xilman is offline   Reply With Quote
Old 2005-11-30, 20:58   #13
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3×373 Posts
Default

Quote:
Originally Posted by xilman
Aw, you spoilt it. You should have used spoiler tags.
As I said earlier, it's educational to perform the calculation for yourself.
Paul
True, but my guess is that if the original poster didn't do the simple calculation you outlined within two days, he was probably too lazy to ever do it. I was hoping to provoke some comments from Jason or Ernst about how much more rapidly such a calculation could be done via multiprocessing.
philmoore is offline   Reply With Quote
Old 2005-12-01, 17:45   #14
drew
 
drew's Avatar
 
Jun 2005

38210 Posts
Default

Quote:
Originally Posted by R.D. Silverman
I think your response is a bit unfair. We can not expect others to know
how to do simple arithmetic.
Give the guy a break...this isn't merely simple arithmetic. It *does* require some knowledge of the order of complexity of a squaring operation to perform that first step. Not everybody knows this stuff off the top of their head, especially for FFT implementations.
drew is offline   Reply With Quote
Old 2005-12-01, 22:50   #15
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

101101011101112 Posts
Default

Quote:
Originally Posted by philmoore
The benchmarks page: http://www.mersenne.org/bench.htm says that it would take a 3800 MHz Pentium-4 about 4050 years to do a LL test on a number of that size, and a Pepin test on F33 should be comparable.
That strikes me as a gross underestimate. The benchmarks page says a 3800 MHz P4 needs 0.0556 seconds per iteration at an FFT length of 2048K = 2^21 doubles. Testing an F33-sized number will need an FFT length of 2^29 doubles. That means that even if we assume that the cache performance at that much-larger FFT length will be just as good as at the smaller, each iteration will need 512*(29/21) ~= 750 times as long, which works out to around 40 seconds (similar to the 1 minute per iteration I mentioned previously). Since we need to do ~2^33 iterations, that works out to over 11000 CPU-years. Since in practice cache performance is invariably going to decline with increasing dataset size (heck, just the "compact" FFT trig tables are going to be big enough to completely fill most PC's L2 caches for an F33-sized FFT), you should probably double that. (Although this is all academic at this point in time anyway.)

So I don't know what formula the benchpage is using to generate its estimates, but even if it's neglecting the log2(FFT length) part of the work estimate and assuming that per-iteration time scales linearly with FFT length, and that cache performance is independent of dataset size, it's *still* underestimating the runtime.
ewmayer is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fast and robust error checking on Proth/Pepin tests R. Gerbicz Number Theory Discussion Group 15 2018-09-01 13:23
Complexity of Chinese Remainder Theorem carpetpool Miscellaneous Math 4 2017-02-09 19:26
Use Pepin's Tests for proving primality of Mersenne numbers ? T.Rex Math 12 2016-04-03 22:27
Complexity analysis of 3 tests kurtulmehtap Math 10 2013-03-20 14:15
Complexity of LLT T.Rex Math 9 2007-05-29 21:15

All times are UTC. The time now is 01:42.


Sat Jul 17 01:42:20 UTC 2021 up 49 days, 23:29, 1 user, load averages: 1.28, 1.25, 1.24

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.