![]() |
|
|
#23 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
265A16 Posts |
This is wise. Also, you should test your machine to ensure that it is stable. Doing some double checks is useful. Also testing known primes and known composites with your software is a useful check.
|
|
|
|
|
|
#24 |
|
Romulan Interpreter
Jun 2011
Thailand
72·197 Posts |
@OP:
Your best computer can do one iteration in ~16ms, according with the benchmark you posted. To test a number with 100 million digits with the known best algorithm and program (that is LL test, and P95) you will need to do about 350 million iterations. Because your exponent is in the range of 350 million. That is, it will take that particular computer, 350 000 000 * 0.016 = 5 600 000 million seconds. Or, about 1600 hours. Or, about 65 days. To test a billion digits number, your exponent is 10 times larger, that is in the range of 3.4 gigs. Your number has ten times a hundred million digits. A single iteration for such a monster would take more than 20 times longer, but say for the sake of the calculus that you can improve the algorithm, and get a faster computer, such that the iteration time grows only ten times. That is 160 milliseconds per iteration. In that case, you will need to do ~3.4 billion iterations, and that makes 3 400 000 000 * 0.16 = 544 million seconds, or about 156 thousand hours, or about 6300 days, or about 17 years. If my calculus is right, that is the time you will need with a computer much faster than you have (but still in reasonable limits to buy in a specialized shop) to test a billion digit number with current known math. Mind that the 160ms per iteration is exaggeratedly optimistic. That is because multiplication algorithm is not linear. Think about like that: with the school grade algorithm, when you double the number of digits, you need to do four times more multiplications. To multiply 3 time 5 you do a single multiplication, but to multiply 37 * 54 you do four multiplications (4*7, 4*3, 5*7, 5*3) and then add the stuff shifted respectively. Now, if you have 10 times more digits, you will have to do (school grade) 100 times more multiplications. Now, well, we do not make school grade multiplications here, that would be so slow that we would not be able to test even numbers with a single million digits. We do some tricks called Fast Fourier Transformation (FFT) to speed up the multiplications. But yet, when your numbers grows 10 times in size (like from 10 digits to 100 digits), the speed goes more than 10 times slower. Not 100 times slower, like it would be with school-grade (try to do a 100 digits multiplication by hand!), but yet, more than 10 times slower. Depending on the size of the numbers, it can be anything between 20 and 50 times slower. Therefore, my calculus with 160 ms per iteration is extremely optimistic, you can better count on something like 30 years, instead of 17. And that is for a single test. You don't need PhD in physics and math to make all this calculus. Therefore, don't get upset if people here start making fun of you. We are kinda tough community here, and what you claim is really funny.
|
|
|
|
|
|
#25 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
11000010100002 Posts |
|
|
|
|
|
|
#26 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
2×3×11×73 Posts |
Quote:
Luigi |
|
|
|
|
|
|
#27 |
|
"Evan"
Dec 2017
Houston, TX
2×3×5 Posts |
I see, that is my fault, I apologize. I think I may have confused myself during that post. I was looking for an exponent that would produce a billion digit number and I think I was finding that it would take an exponent over 1 billion, probably around 3 billion... as an exponent.. I was using Maple to find such an exponent that would produce a billion digit number but I could only find 999,xxx,xxx digits... I guess thats where Maple stops because when I increased the exponent every so slightly it stops giving me an answer there. Thank you for pointing out my miscommunication, I appreciate it. |
|
|
|
|
|
#28 | |
|
"Evan"
Dec 2017
Houston, TX
2×3×5 Posts |
Quote:
Is there a link that anyone can provide that explains what the "residue", "shift", "type", and "results" all mean on the "primenet exponent status" page? When using my software for my personal prime search I have been checking against known primes and not-primes(composites?) before attempting to locate a prime. I really wish there was a way to save the progress and see a completion date in the Maple software... While Prime95 seems to be CPU heavy, Maple seems to be RAM heavy and spares the CPU, even when I ran Maple in terminal mode. |
|
|
|
|
|
|
#29 | |
|
"Evan"
Dec 2017
Houston, TX
2·3·5 Posts |
Quote:
![]() I don't mind if people make fun of me.. I grew up with "sticks and stones may break my bones but words shall never hurt me". I only ask that if people are going to make fun at least couple it with some constructive criticism so that I may learn something in the process ![]() Again thank you for the write up.. I am going to take some notes on it and I'll get back to you. |
|
|
|
|
|
|
#30 | |
|
"Evan"
Dec 2017
Houston, TX
2×3×5 Posts |
Quote:
You all have been very insightful. I am glad that you all have taken time out of your day to help me better understand. My iMac is currently running M332xxxxxx on Prime95 as well as a 300M+ exponent in Maple. I did start the Maple calculation a few days after the Prime95 calculation but we'll see how it goes. I know there are a lot of variables that go into comparing the two computations, I just figured since Prime95 is CPU heavy and Maple is RAM heavy why not take advantage of the two programs since they don't hinder each other. |
|
|
|
|
|
|
#31 | |
|
"Evan"
Dec 2017
Houston, TX
2×3×5 Posts |
Quote:
I am new to code but better late than never. It seems like the general theme is a billion digit number will require either a supercomputer or a search to be passed down from generation to generation lol! Thanks for the input, I will respond again when/if I have questions about Pari-GP |
|
|
|
|
|
|
#32 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
622410 Posts |
That time is for 4M FFT only. For the required 1Gdigit check the FFT iteration time would be a lot more. Since P95 can't do tests that large the times will have to come from another application. Is there any program currently existing that can handle numbers of 1Gdigit? A single iteration could take a few minutes. Multiply that by 1G iterations and you need to have the lifetime of a few Methuselahs to see it finish.
|
|
|
|
|
|
#33 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
2·3·11·73 Posts |
Quote:
IF (prime-proving requires high-level CPU calculations) AND (prime95 is CPU heavy) THEN (prime95 will reach its result much faster than Maple) and IF (prime95 proves numbers of the form 2^p - 1) AND (your number is not of the form 2^p - 1) THEN (you cannot use prime95 to prove your numbers: the result will be wrong) I beg your pardon if such syllogisms are already clear to you: having to do daily with students who do not know how computers work, I felt the urge to elaborate. ![]() Luigi Last fiddled with by ET_ on 2017-12-24 at 17:19 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to enter password in prime.txt? | Unregistered | Information & Answers | 3 | 2011-04-28 02:02 |
| Less GHz days for larger exponents in TF? | Bdot | Information & Answers | 12 | 2010-11-21 22:33 |
| Enter key doesn't work at weird times. | jasong | Linux | 5 | 2007-08-25 20:31 |
| How 'bout an ecm server for numbers about to enter Prime95 first-pass? | jasong | GMP-ECM | 2 | 2007-03-16 16:16 |
| 2003 Nov 03: P-1: a set of 16 larger exponents | GP2 | Completed Missions | 2 | 2003-11-09 01:21 |