![]() |
|
|
#12 |
|
Jun 2003
32 Posts |
Each computer works on a unique exponent which nobody else is testing at the same time.
Your computer is working on the exponent M19463987 which is a 5.8 million digit number. You are the only one working on that number right now. At the end of your test (approximately 4 weeks), you will know whether or not that number is prime. If it is prime, bells will go off, someone else will double check your exponent to be sure there were no errors during your test, and if it is verified that the number is in fact prime, you will be given credit for its discovery. If your LL test shows that number isn't prime, you are assigned a new exponent to begin testing. Does that help?[/b] |
|
|
|
|
|
#13 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Quote:
The number you are working on, M19463987, equals 2^19463987-1, which means "(2 raised to the power 19463987) minus 1". That means multiply 19,463,987 2s together (2 x 2 x 2 x 2 x ... 2 x 2, where there are 19,463,987 2s), then subtract 1. When we multiply a number by itself one or more times like that, the process is called exponentiation, and the total count of the number of 2s is called the exponent. So the exponent of M19463987 = 2^19463987-1 is 19463987, and there's only one exponent for the 5-plus-million-digit number you are working on. You're assigned the whole 5-plus-million-digit number, not just part of it. |
|
|
|
|
|
|
#14 |
|
Aug 2002
3010 Posts |
To add a bit more to that excellent description you just read, here's a layman's description of the work your computer is doing.
Imagine the number 17. Imagine 17 SQUARED, or 17 x 17. That's 289. Imagine the number 72,892. Now imagine 72,892 SQUARED, or 72,892 x 72,892. That's 5,313,243,664. As you can see, when you square a number, the results get much, MUCH bigger, very quickly. OK, now picture numbers like your exponent. Picture a number of up to 5,500,000 DIGITS, squared. That's a truly mind-boggling number. To test your number for primality, your computer has to perform the equivalent of that operation, and then divide it by a huge number, and then work with the remainder. Those are tremendously huge mathematical operations. A typical P4 can only do the work five times every second. Now, to test the number for primality, it has to to that work the equivalent of one time for every digit in your number -- in your case, 5.5 million times. Only the result of the last one matters. If the remainder of the very last time is zero, your number is prime. You can't just skip to the last one, though, because each new "iteration" of the test depends on the value of the last one. The second "part" of the test has to wait for the first to complete. The third part has to wait for the second part. And so forth. Thus, to do that huge math 5,500,000 times will take about 0.2 seconds times 5,500,000 calculations, each done in succession. That's 1,100,000 seconds, or about 305 hours, or about 12 days and 18 hours. Your true time may vary depending on your CPU and how heavily it is working. But that's what your CPU is doing. Now, admittedly, George (with the help of a gentleman named Fourier) has written the code to do those huge multiplications MUCH faster than doing them for real. There are special table lookups called Fourier Transforms that make the tests we're doing MUCH MUCH faster than doing the math for real -- but the results are as accurate. If we had to take a 5.5 million digit number times a 5.5 million digit number, and then divide it by another huge number, and we had to do the math "longhand" (for real) then our tests would be much, MUCH longer than they already are. Only through the magic of these special Fourier Transformations are our tests as "short" as they are. The last "nicety" about these tests is that as the numbers get bigger, things get tougher still. Just as 72,892 x 72,892 is tougher to calculate than 17 x 17..... an 11 million digit number times a 11 million digit number is MORE than twice as hard to figure than the numbers you're working with now.... and not only do the calculations themselves get tougher, so too do the numbers of them. If your test was 11 million digits long, the resulting calcualtions would be about 2.3 times as difficult and lengthy... *and* there would be twice as many of them as well. So a number twice as large isn't twice as difficult to test -- it is about 4.5 times more difficult to test! I hope this helps you understand the immensity of what you've asked your computer to do. Have fun! Jeff |
|
|
|
|
|
#15 | |
|
"Sander"
Oct 2002
52.345322,5.52471
118910 Posts |
Quote:
|
|
|
|
|
|
|
#16 | |
|
Jun 2003
2 Posts |
Quote:
|
|
|
|
|
|
|
#17 |
|
Aug 2002
23×52 Posts |
D = ceil(p*log10(2))
where... D is the number of digits (base 10) p is your exponent log10 is base-10 logarithm; hence log10(2) = 0.301029996.... ceil() rounds its argument up to the next highest integer For example, suppose p = 17 D = ceil(17*log10(2)) = ceil(5.1175...) = 6 so 2^17-1 has 6 digits. And if you pull out your calculator, 2^17-1 = 131071 (6 digits) Similarly, suppose p = 13466917 D = ceil(13466917*log10(2)) = ceil(4053945.97) = 4053946 digits And for your number, p = 33533807 D = ceil(33533807*log10(2)) = ceil(10094681.78 ) = 10094682 digits |
|
|
|
|
|
#18 |
|
Jun 2003
2 Posts |
Thanx :)
And now does a program could let me excute this function and give me the number (I could do it in VB but I'M pretty sure that it will say me that the number is to big) |
|
|
|
|
|
#19 | ||
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
769210 Posts |
Quote:
Quote:
The answer in the "Estimated Time" box depends on what's in all four input boxes. The answer in the "Decimal digits" box depends only upon what's in the "Exponent" box. So you can just ignore the "CPU Type", "CPU Speed", and "Hours/day" boxes, put your exponent in the "Exponent" box and press Enter. Your answer will appear in the "Decimal digits" box. |
||
|
|
|
|
|
#20 |
|
Jun 2003
7·167 Posts |
[quote="bibiteinfoHow can I know how many digits is my number?[/quote]
If you're only looking for an estimate, then a useful rule of thumb is to devide by 10 and multiply by 3. Alternatively, if it was assigned by the Primenet Server, then it's a little over 10M digits. :) |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Some random calculations on (MM19+2)/3 | Raman | Programming | 42 | 2016-10-10 18:33 |
| Factoring Calculations | harishdeen | Homework Help | 14 | 2015-03-31 15:26 |
| Could someone please check my calculations? | Sam Kennedy | Programming | 2 | 2012-12-27 08:52 |
| CPU efficiency for DWT calculations and future | diep | Software | 9 | 2009-12-29 04:59 |
| Is based 10 used for calculations? | Googol | Information & Answers | 2 | 2007-07-27 03:09 |