New Possible Record Prime Number Found 307
An anonymous reader writes "The Great Internet Mersenne Prime Search (GIMPS), a distributed computing project, has probably found a new record prime number. Two verification runs have started; no errors were found in the initial calculation. The number of primes found lately, four in just over two years, is higher than previously expected. This prime is just under 10 million digits, which means that one of the participants in the project makes a good chance to obtain his or her part of the EFF prize of $100,000 for the first prime of over 10 million digits in the coming months. In 2000, one of the Gimps participants collected the $50,000 reward offered."
/.ed (Score:5, Funny)
Re:/.ed (Score:5, Funny)
Ah, but... a number of ten million digits? That has to take up ~ 10MB of disk space. And now the link's been posted to /., where every lunatic is now clicking on it and thinking that by some bizarre geek savant superpower they're going to somehow look at it and go 'yup, that's prime all right' or something...
No wonder the server's a smoking crater now :)
Re:/.ed (Score:3, Funny)
Re:/.ed (Score:5, Informative)
2^35000000-1 => that's in normal form. You only have to store the exponent, the rest is constant. Since it's smaller than 4294967296 you can store it in a normal int (4 bytes), and since it's larger than 16777216 you can't store it in 3 bytes.
Re:/.ed (Score:5, Informative)
111111111111111111.................11111111111111
They differ only in the number of ones. The point why they are mersenne primes is BECAUSE they have this property. Since these numbers are relatively often prime, it's a lame (*cough*, ok, cheap) way to get to very large prime numbers.
So, all you have to store to know the number is the number of binary digits. Conveniently, that's the exponent in power-of-2 notation.
You can write down the exponent in 4 bytes, I sure hope. If you want to type it out in notepad, try using the notation I provided. It fits in 15 bytes with ease.
Radical compression scheme (Score:5, Informative)
Consider this as a radical compression scheme. Rather than storing every single digit, you store a simple formula for arriving at the number. In this case, that formula is 2^x-1. All you need to store is x, which requires O(lg n) bytes to store where n is the number of digits in the original number.
What strikes me as somewhat amusing is that calculating 2^x-1, for an arbitrarily large x, requires O(2^x) amount of time. Of course, since 2^x is less than 10 million here, and it's actually quite a small bit of work O(2^x) times, it's no big deal.
Re:Radical compression scheme (Score:2)
Converting to base 16, base 2, whichever (Score:2)
If you want to just represent this as 111...111, it will obviously require O(n) or O(2^x) time, since there are O(2^x) digits. To represent it as FFF..FFF (or 3FF..FFF, etc., depending on the situation), will require O(n/16) time which is still O(n) or O(2^x), by definition of O().
Converting to base 10 is also only O(n), but would be slightly slower, of course.
Subtracting 1 requires O(n) carries (Score:2)
2^x = 1000...0000 in binary.
2^x-1 = 111...1111.
There are intelligent ways to do this very quickly; however, it's still O(n), or O(2^x), where n is the number of digits. Let's assume that you have an infinite number of 64-bit registers, and each register can subtract one in constant time (for a fixed size register, this is a trivial statement). If you have n binary digits, then you'll require n/64 registers to store 2^x. Two carry the subtraction from each register will require O(n/64) time, and O(n/64) is
Re:/.ed (Score:3, Insightful)
When you're brute-forcing your way to a test for primality of n, you needn't go all the way to n / 2, only up to sqrt(n). If xy = n, and x > sqrt(n), then you should have found the factor y already.
I think there are also more efficient tests that can determine whether a number is prime to arbitrary probability without trying eve
Re:/.ed (Score:5, Informative)
This only works due to the Mersenne prime being one less than a number with many known factors.
Re:/.ed (Score:2, Funny)
This only works due to the Mersenne prime being one less than a number with many known factors.
Lemme guess, your a real hit with the ladies, eh?
Re:/.ed (Score:5, Informative)
Of course, if you do know all preceeding primes, then it's just a matter of restricting your test to just that sequence, as everything else by definition have smaller prime factors you'll test against.
If not there's a bit more work, but you can still save a lot over brute forcing it.
If you start at 2 and work your way upward, and for as long as you know the next prime up, you'd only need to test with the next prime.
After that, you can still discard tests with any numbers that can trivially easily be shown to have small prime factors without even trying a division, like all even numbers, all numbers ending in 5 etc.. There are quite a few rules that can be added to just immediately skip a lot of numbers as you're iterating upwards with quite cheap logic.
You can also test the number you will use to test your potential prime by first testing that against a set of small primes (apart from the ones you've already discounted by not generating the test numbers), to quickly discard those test numbers before you attempt a huge expensive division. It's also possible to derive relatively simple rules to check for divisibility of many small primes that may be far cheaper than trying an actual division once you start getting up to reasonably large numbers.
The method of discaring tests against numbers divisible by a set of small primes is known as the Sieve of Eratosthenes... I think there are a few alternative methods - the main benefit of the sieve of Eratosthenes is that the basic algorithm extremely simple and still a vast improvement over brute forcing.
Re:/.ed (Score:3, Informative)
http://www.math.utah.edu/~alfeld/Eratosthenes.htm l [utah.edu]
and http://mathforum.org/dr.math/faq/faq.divisibleto50 .html [mathforum.org]
Re:/.ed (Score:5, Informative)
Re:/.ed (Score:5, Interesting)
Their computers can calculate a prime number with 10,000,000 digits, but they can't even serve a webpage? Jeez... where are your priorities?
Next slashdot news will be how slashdotters managed to wreck the hard disk in the server that contained the 10 million digit prime
Now that would be real
I think it's kindof annoying to install that distributed computing software everywhere where you'd like to use the spare cpu time. My homies mess up their windows machine so often that i've stopped trying to keep anything running there (a machine online 24/7 that shows a web browser and msn for 3-4 hours a day, what a waste).
Can't they put it in applets that i can run from their webpages ? Surely Java is a bit slower than C in algebra (not really as much as you think, on very simple math tests the difference was about 10-20% last time i measured), so a C client should be available, but a web based client which i can just run in any java enabled browser would definitely increase the userbase.
Re:/.ed (Score:2, Funny)
(cleverly avoiding girl jokes by completely forgetting about them)
10 million? (Score:3, Funny)
Re:10 million? (Score:4, Funny)
Re:10 million? (Score:5, Informative)
Re:10 million? (Score:4, Interesting)
Moreover, 2759677 has 7 digits, which is prime too! How fun.
Re:10 million? (Score:5, Funny)
Re:10 million? (Score:3, Funny)
Re:10 million? (Score:2, Funny)
Re:10 million? (Score:2)
At least it would be if I get to pick the base after I found the prime number...
Re:10 million? (Score:2)
Re:10 million? (Score:3, Interesting)
* I'd say 1, but after 30 seconds' thought I haven't found a trivial proof.
Re:10 million? (Score:2)
Re:10 million? (Score:2, Interesting)
Is this just more number nerdery, or is there a practical application for such vast and unfathomable numbers?
Re:10 million? (Score:2, Informative)
Of course, we're still only on 256-bit encryption right now. Should be a while until however-many-bits-t
Re:10 million? (Score:2)
Re:10 million? (Score:2, Interesting)
Re:10 million? (Score:2)
I can't access the site (Score:5, Interesting)
Re:I can't access the site (Score:3, Interesting)
Re:I can't access the site (Score:5, Informative)
Re:I can't access the site (Score:2)
Re:I can't access the site (Score:3, Informative)
BUT it could also be that there's other Mersenne primes in there that we haven't found yet. The exponents the GIMPS project tests are not handed out in sequential order, so there are still "gaps" in there that haven't been checked and double-checked. I'm not sure what the current "watermark" is; the pr
Re:I can't access the site (Score:3, Insightful)
The Prime Number Theorem [wolfram.com] tells us that in a region of d around a large number n, there are approximately d/ln n primes. For a 9 million digit n, ln n is about 21 million, so one expects to see one prime every 21 million numbers. For example, between 10^9000000 and 1.1*10^9000000, one expects 5*10^8999991 prime numbers.
Re:I can't access the site (Score:2)
If p is a prime, then the distance to the next smaller prime is on the average about ln (p). Cases where the gap to the next smaller prime is more than (ln (p))^2 seem to be exceedingly rare. So yes, there are gazillions of primes between this one and the next smaller one.
There may be no Mersenne primes between this one and the previously la
Re:I can't access the site (Score:2)
It is for all intents and purposes certain. The prime number theorem will give the approximate density of primes, even though it can't locate them exactly so we know there are many many more primes out there. For the rest of the primes we have no efficient way of determining if they are prime. We have very fast algorithms to determine if a number
Re:I can't access the site (Score:5, Interesting)
You'll probably find this article interesting - it covers prime finding (in C) from naive algorithms to complexe ones involving paging bit arrays in and out of memory: "Fun With Prime Numbers" [troubleshooters.com]
Mersenne Primes (Score:5, Insightful)
Re:Mersenne Primes (Score:3, Interesting)
Let Phi(n,x) be the n-th cyclotomic polynomial evaluated at x.
Therefore Mersenne primes are Phi(p,2) for some p.
I found the prime Phi(98304,1063662)=1063662^32768-1063662^16384+1 the other day. However, it is _tiny_ with only 197000 digits (something like the 240th largest in the world).
Lots of people are finding large prime numbers - if you find one over ~64000 digits, it'll be one of the largest 5000 known primes.
See http://primepages.org/ [primepages.org]
Why prime numbers ? (Score:5, Interesting)
So I'm not being sarcastic here, my genuine questions is : why should I spend my free computing power on calculating prime numbers instead of research to cure cancer?
Re:Why prime numbers ? (Score:3, Informative)
-bZj
Re:Why prime numbers ? (Score:3, Insightful)
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:5, Informative)
Because you like numbers and think big primes are cool.
Seriously.
This is pure mathematics, it's number theory. Don't expect practical applications; if they turn up, they're a nice bonus, but they're not why you do mathematics.
There may actually be a practical result of this research eventually; the number theory surrounding primes is closely related to the security of the RSA cipher that most of the internet's commerce relies on. It's conceivable that this kind of work might eventually lead to a breakthrough in cryptanalysis. But I wouldn't count on it.
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:4, Interesting)
Re:Why prime numbers ? (Score:4, Funny)
But the more we know about those people who calculate primes in their spare time,
the safer America will become.
Re:Why prime numbers ? (Score:3, Funny)
Re:Why prime numbers ? (Score:2)
But someday, we will be able to factor them!
Re:Why prime numbers ? (Score:2)
Of course. It's pure maths, done for its own sake. You think these people care for the practical usefulness of their work?
I have never done anything "useful". No discovery of mine has made, or is likely to make, directly or indirectly, for good or ill, the least difference to the amenity of the world. I have helped train mathematicians, but mathematicians of the same kind as myself, and their work has been, so far at any rate as I have helped them to it, a
Re:Why prime numbers ? (Score:2)
Developing the algorithms was maths. Running them on 1000s of computers wasting resources is just like trying to to verify that 2*a = a+a by calculating it for all a`s.... A waste of time and no benefit for science or math.
Why anything? (Score:5, Funny)
Re:Why anything? (Score:3, Funny)
Re:Why prime numbers ? (Score:5, Insightful)
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:2, Insightful)
The smaller prizes - 1M digit (already awarded), and 10M digits (still pending) are actually pretty small and unimportant. They can be attacked simply by throwing huge numbers of inexpensive commodity PCs at the task. That's basically what GIMPS is. The larger prizes are the important ones, as they reward a much harder achievement. The algorithms used t
Re:Why prime numbers ? (Score:2)
Re:Why prime numbers ? (Score:2)
BTW, this is cute (Score:5, Informative)
Clever clever!
Re:BTW, this is cute (Score:2, Funny)
Re:BTW, this is cute (Score:3, Funny)
FYI (Score:4, Informative)
The third largest known prime is 224036583 1 (this number is 7,235,733 digits long); it is the 41st known Mersenne prime. M24036583 was found on May 15, 2004 by Josh Findley (member of GIMPS) and it was announced in late May 2004.
The fourth largest known prime is 220996011 1 (this number is 6,320,430 digits long); it is the 40th known Mersenne prime. M20996011 was found on November 17, 2003 by Michael Shafer (and GIMPS) and announced in early December 2003.
Historically, the largest known prime has almost always been a Mersenne prime since the dawn of electronic computers, because there exists a particularly fast primality test for numbers of this form, the Lucas-Lehmer test for Mersenne primes [wikipedia.org].
The largest known prime that is not a Mersenne prime is 27653 × 29167433 + 1 (2,759,677 digits). This is also the fifth largest known prime of any form. It was found by the Seventeen or Bust project [wikipedia.org] and it brings them one step closer to solving the Sierpinski problem [wikipedia.org].
Some of the largest primes not known to have any particular form (that is, no simple formula such as that of Mersenne primes) have been found by taking a piece of semi-random binary data, converting it to a number n, multiplying it by 256k for some positive integer k, and searching for possible primes within the interval [256kn + 1, 256k(n + 1) 1].
Re:FYI (Score:4, Funny)
(Yes, I know, your "to the power of" got nobbled).
Headlines (Score:5, Funny)
The number of primes found lately, four in just over two years, is higher than previously expected.
I can just imagine the newspaper report: Scientists report more numbers than previously thought.
Re:Headlines (Score:2)
That's an Onion [theonion.com] worthy headline!
FPGA prime number calculator (Score:2, Interesting)
Biggest useless (yet meaningful) number ever? (Score:2)
Re:Biggest useless (yet meaningful) number ever? (Score:2, Interesting)
The best page about large numbers, however,
For newbies (Score:3, Interesting)
As it states here [mersenne.org]
If you were to find a 10,000,000 digit prime today the above rules imply that $5,000 would go to Michael Cameron, discoverer of the 39th known Mersenne prime, $5,000 would go to Michael Shafer, discoverer of the 40th known Mersenne prime, $5,000 would go to Josh Findley, discoverer of the 41st known Mersenne prime, $5,000 would go to Dr. Martin Nowak, discoverer of the 42nd known Mersenne prime, $0 would go to discoverers of algorithmic breakthroughs, $5,000 would go to GIMPS primarily to fund future awards, $25,000 would go to charity, and $50,000 would go to you.
Now the bad news. Testing a single 10,000,000 digit number takes two months on a 2 GHz Pentium 4 computer. Your chance of success is roughly 1 in 250,000.
Someone may find a 10,000,000 digit prime before GIMPS does.
Re:For newbies (Score:2)
why go for under 10k? (Score:2)
Re:why go for under 10k? (Score:3, Informative)
Better tell me... (Score:3, Funny)
New Possible Record Prime Number Found (Score:5, Funny)
Hey, also small is beatuiful.
Re:New Possible Record Prime Number Found (Score:2)
Products of primes (Score:3, Funny)
Re:Products of primes (Score:2)
A composite (ie non-prime) number is a product of at least two prime numbers, otherwise it would be a prime number. That follows directly from the definition of a prime number. A composite number can have more than two (different) prime factors though. Take your favorite number 42 = 2 * 3 * 7. Or if you want a 5 digit number: 11 * 23 * 127 (a Mersenne prime, btw
Whao this has so many digits (Score:2)
So, will THIS GIMP be... (Score:2)
Sorry, i just had to...
Wow! (Score:2)
WTF? (Score:2)
Damn it! Now I have to change my luggage combination again. You bastards.
Darn It! (Score:3, Funny)
To big for my /. .sig, darn it!
Re:I'm aiming at the $150,000 prize (Score:2)
So at least they're not wasting your membership fees on this "huge scientific problem".
Re:Probably? (Score:2)
Re:Probably? (Score:2)
My favourites from that list:
and oh, lots of others.
Another one of note:
Re:Probably? (Score:2)
What on earth are you talking about? At first look, you seem to be thinking of "odd numbers", a fascinating concept made yet simpler by the fact you don't even have to divide the huge number by anything, just look at the last digit and see whether it's odd or even. Yet that still doesn't fit with your 'divide it by 2 and see if it comes out even; you seem to take "prime number" to mean "anything that isn't divisible by 4".
Re:Probably? (Score:3, Funny)
Re:Probably? (Score:2)
Re:Prime numbers aren't all that rare. (Score:2, Informative)
Re:Prime numbers aren't all that rare. (Score:2)
This is not even close to correct. Testing primality this way becomes impractical around 30-40 digits or so (depending a bit on how patient you are) and there are methods that
Re:Upon further review... (Score:2)
I needed a prime number ending in two (that is not two) for my Cold Fusion generator and Perpetual Machine.
It also will allow me to make Windows virusproof.
Re:How do they check a number that big for primene (Score:3, Informative)
No -- for Mersenne numbers, they usually use the special number field sieve [wikipedia.org].