Slashdot Mirror


40th Mersenne Prime Found

FenwayFrank writes "A release from New Scientist announces that the Great Internet Mersenne Prime Search found another one: 2^20996011 - 1 is prime. Weighing in at 6,320,430 digits (6 megabytes of prime number...), it becomes the world's largest. Slashdot readers may remember then announcement of the 39th Mersenne Prime, a mere 3.5 million digits."

99 comments

  1. Fraud by addaon · · Score: 5, Funny

    The last digit is a four!

    Wait, no, it just got slashdotted before it fully loaded...

    --

    I've had this sig for three days.
    1. Re:Fraud by Anonymous Coward · · Score: 0

      The last digit is a 1!

    2. Re:Fraud by Anonymous Coward · · Score: 2, Informative

      Actually, it's a 7.

      2^1-1 mod 10 = 1
      2^2-1 mod 10 = 3
      2^3-1 mod 10 = 7
      2^4-1 mod 10 = 5
      2^5-1 mod 10 = 1
      2^6-1 mod 10 = 3
      2^7-1 mod 10 = 7
      2^8-1 mod 10 = 5
      etc.

      20996011 mod 4 = 3 so it's a 7.

  2. SLASHDOT!!! by Anonymous Coward · · Score: 0

    6 megabytes * 10000+ views = death to site

  3. ObTiredOldJoke by dacarr · · Score: 0, Redundant

    Imagine the beowulf cluster it took to calculate this!

    --
    This sig no verb.
  4. Here's something stupid to do. by satanami69 · · Score: 5, Funny

    I found my /. ID (209636) shows up 5 times.

    I wonder who has the most occurrences.

    --
    I really hate Dan Patrick.
    1. Re:Here's something stupid to do. by Anonymous Coward · · Score: 0

      Those with the fewest digits I'm sure.

    2. Re:Here's something stupid to do. by infornogr · · Score: 3, Insightful

      Statistically, whoever has the forum ID with the lower number of digits. Somehow I think the nine people that would have to duke it out to answer your question won't respond to this post, however.

    3. Re:Here's something stupid to do. by GigsVT · · Score: 1

      I'd guess malda, with UID 1. Maybe if there are other accounts with UID 2-9 that are still active, they might have a chance. :)

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    4. Re:Here's something stupid to do. by dacarr · · Score: 1

      Eight occurances for me. Film at eleven.

      --
      This sig no verb.
    5. Re:Here's something stupid to do. by dacarr · · Score: 1

      Or rather, if I have a dumbass attack and do '562227'. It's really like 3 or 4.

      --
      This sig no verb.
    6. Re:Here's something stupid to do. by Anonymous Coward · · Score: 0
    7. Re:Here's something stupid to do. by Carnildo · · Score: 1

      11 occurrences of my /. ID, one occurrence of my ICQ number, and fortunately, my Social Security number isn't in there.

      --
      "They redundantly repeated themselves over and over again incessantly without end ad infinitum" -- ibid.
    8. Re:Here's something stupid to do. by KDan · · Score: 1

      No. This one.

      Daniel

      --
      Carpe Diem
    9. Re:Here's something stupid to do. by Anonymous Coward · · Score: 0

      Due to the line breaks in the text file, searching for something in the number may not find all of the results (unless you've taken measures to counteract this).

    10. Re:Here's something stupid to do. by PhuCknuT · · Score: 1

      597 occurances. booyah.

    11. Re:Here's something stupid to do. by BhAaD · · Score: 1

      BhAaD: 692949 -----6 Times I beat you...ha!

    12. Re:Here's something stupid to do. by Naikrovek · · Score: 1
      mine shows up at least 6133 times:
      c:\>cat prime6.txt | grep 667 | wc -l
      6133
      c:\>
      more, if there are multiple occurances per line, but i didn't check.
    13. Re:Here's something stupid to do. by Muad'Dave · · Score: 2, Informative

      You guys are unblocking the file before searching, right? You'll miss instances of your that wrap around eol. Use:

      dd if=prime6.txt of=p6.txt cbs=75 conv=block
      --
      Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
  5. I bet it's not that big by Anonymous Coward · · Score: 3, Funny

    Everyone claims their prime is over 6 million digits in length when in reality most are only about 5.5 million digits.

  6. Finally! by Rick+the+Red · · Score: 4, Funny

    Now I can generate a secure PGP key pair!

    --
    If all this should have a reason, we would be the last to know.
    1. Re:Finally! by SamSim · · Score: 1

      Um, not really THAT secure. The whole number (along with the previous best known prime, M39, at "only" 4,000,000 digits, which you'd presumably also be using) is there for anybody to download.

    2. Re:Finally! by Chris_Jefferson · · Score: 1

      Actually, your PGP key would be one of the most insecure :) PGP's strength requires on factoring two primes multiplied together. However we only know one prime this big, so if you key is bigger than this prime, we have a fairly good idea what one of the factors is!

      --
      Combination - fun iPhone puzzling
  7. Wow! by HoldmyCauls · · Score: 3, Funny

    It's actually 1916 pages in lynx under a 1024x768 framebuffer!!!

    Hah, you really thought I actually counted for a second there!

    --
    Emacs: for people who just never know when to :q!
    1. Re:Wow! by JeffMagnus · · Score: 1

      You can claim to be using a console application and then tell us the number of pixels you use. What counts is the rows and columns.

      Get it straight leetboy.

  8. 40th? by Tom7 · · Score: 4, Insightful

    This is not necessarily the 40th Mersenne Prime, just the 40th that we've found. We still need to prove many ones in between to be composite before we can mark its place as 40th.

    1. Re:40th? by Anonymous Coward · · Score: 0

      Because they were obviously checking 2^p-1 using no particular order for p.

  9. Time to update all pages by Anonymous Coward · · Score: 4, Informative

    The first Mersenne primes are 3, 7, 31, 127, etc. There are only 39 known Mersenne primes.

    Well, now it is 40 known Mersenne Primes, and also 6 discovered by the GIMPS: they need to change the front page to reflect this, and also some banners ("the largest 5 Mersenne primes").

    I think it's worth noting that GIMPS not only discovers new Mersenne primes, but also is the discoverer of the biggest six known ones.

  10. Awesome! by falsification · · Score: 4, Funny

    This is great news. Once we have the 42nd, we will know the secret of the universe.

    1. Re:Awesome! by fmlug.org · · Score: 1

      Yes but only if we are asking the right question.

    2. Re:Awesome! by Anonymous Coward · · Score: 0

      Too bad nobody knows if there even are 42 of them. It's conjectured that Mersenne primes are infinite in number but this has not been proven. There could be only 40.

  11. math == piracy by Anonymous Coward · · Score: 3, Funny

    by a strange coincidence, the 40th prime is also an MP3-encoded audio file of an unreleased Missy Elliot track.

    the RIAA is lobbying to have mathematics outlawed due to the $400 billion lost yearly to these illegal primes.

    remember kids, learning math makes you a pirate! stick to watching TV and eating delicious Oreo(R) cookies!

  12. not prime by Anonymous Coward · · Score: 0

    isprime(2^20996011-1);

    Nope, divisible by 2.

    1. Re:not prime by Anonymous Coward · · Score: 0

      are you okay? any power of 2 subtracting 1 is not going to be divisible by 2

    2. Re:not prime by Anonymous Coward · · Score: 0

      2^0-1 = 0

    3. Re:not prime by luckyguesser · · Score: 1

      *ahem*
      with one exception :)

      --


      The power of Christ compiles you.
      A Random Blog
    4. Re:not prime by Anonymous Coward · · Score: 0

      2^(ln(3)/ln(2))-1 = 2

    5. Re:not prime by luckyguesser · · Score: 1

      okay... corrected version:
      Any expression
      2^n
      where n is a positive integer will be even,
      and subtracting 1 will make it odd.

      --


      The power of Christ compiles you.
      A Random Blog
    6. Re:not prime by Anonymous Coward · · Score: 0

      But in C,

      printf("%d", 2^3-1);

      outputs 0.

    7. Re:not prime by damien_kane · · Score: 1

      To all the other children of the parent, I think the logic that gave him his answer was something like the following:
      (2^20996011-1) => 2^(20996011-1)
      = 2^(20996010)
      So of course, his logic is flawed, but the answer he came up with is correct based on his logic.
      (2^20996010)mod 2 = 0
      Therefore 2^20996010 is not prime

      Maybe this kid should go back to elementary school and be re-taught the proper Order of Operations.

    8. Re:not prime by jquirke · · Score: 1

      That's because ^ is the XOR operator, not the power operator.

      So effectively you are doing 2 XOR 3 - 1 = 1 - 1 = 0

    9. Re:not prime by Anonymous Coward · · Score: 0

      While you are correct in that ^ is the exclusive-or operator, your summary of what the code does is incorrect. The expression in the grandparent actually does 2 XOR (3 - 1) since subtraction has higher precedence than bitwise exclusive or.

      In this example, one could easily overlook this since both the correct and incorrect ways of interpreting it yield zero.

  13. Well, that's the way it goes... by Charbal · · Score: 5, Informative

    Of course, it didn't occur to me to take a look at the Science section before submitting my own copy of this story (which, since it has several other useful links in it, follows):

    Michael Shafer, a graduate student at Michigan State University, took time out for a "short victory dance" upon learning his computer had discovered the 40th known Mersenne prime as part of The Great Internet Mersenne Prime Search. The number itself is 2**20996011-1 and when expressed in base 10, has 6,320,430 digits (zipped copy). However, this is not necessarily the 40th Mersenne prime; there could be another between the previous largest known prime (M39=2**13466917-1, also discovered by GIMPS) and this one. Also worth noting is the still-standing USD$100,000 EFF prize for the discover of the first prime of at least 10 million (decimal) digits. GIMPS clients are available for various operating systems as well as information on how GIMPS would distribute the prize. A press release on the achievement is available as well as several articles. Of course, this also means there's a new largest known even perfect number in town.

    --
    Prudence forbids me to explain myself further. - Isaac Barre, 1765
  14. Damn them! by nytes · · Score: 1, Funny

    Just when I thought no one could ever guess my password. Now I have to change it again.

    --
    -- I have monkeys in my pants.
    1. Re:Damn them! by JDWTopGuy · · Score: 1

      You too? Crap!

      --
      Ron Paul 2012
    2. Re:Damn them! by damien_kane · · Score: 1

      That's ok; I'm using the 41st and 42nd Mersienne Primes as my passwords. which is why people have only got to the 40th MP so far...
      I can't let the cat out of the bag until I find the 43rd and 44th and change all of my passwords.
      You silly people... thinking the 40th was good enough... And didn't you learn that you shouldn't use the same password for everything? Now you see why :P

    3. Re:Damn them! by nytes · · Score: 1

      Hmmm... Mersienne Prime 41, Mersienne Prime 42, Mersienne Prime 43, Mersienne Prime 44.

      Hey! That's the combination on my luggage!

      --
      -- I have monkeys in my pants.
  15. Holy hyperlinks, Batman! by Anonymous Coward · · Score: 0

    Be glad your story submission wasn't accepted otherwise you would have been inundated with "You got enough links there, buddy?" comments. There's a fine line between providing some background and ancillary material and going ape-shit with links.

  16. If I post the number here... by Twintop · · Score: 2, Funny

    ...do you think we could /. the /. server?

  17. 6 Megabytes?????? by the+eric+conspiracy · · Score: 0, Troll

    Since when does it take a byte to represent a base 10 digit?

    This number takes more like 21 KB to represent.

    1. Re:6 Megabytes?????? by Anonymous Coward · · Score: 0

      It's the binary number with 20996011 consequtive ones and no zeros. That should be very amenable to compression, eh?

    2. Re:6 Megabytes?????? by Ster · · Score: 1

      I presume the *text* of the number is ~6 meg, since each digit as a character is a byte (assuming it's ASCII).

      -Ster

    3. Re:6 Megabytes?????? by Tom7 · · Score: 1

      While we're doing decompression, I offer the following 12-byte version:

      2^20996011-1

      Seriously, though, where did you get the factor of 300 difference? You think it takes less than a 37th of a bit to represent each digit?

    4. Re:6 Megabytes?????? by the+eric+conspiracy · · Score: 1

      You think it takes less than a 37th of a bit to represent each digit?

      Pretty simple - binary math - each place of a binary number is a power of two. Since this number is 2^20996011 - 1, it can be represented in binary form as 20996010 1's, thus 21 KB. It's also why you can count to 2^10 - 1 on your fingers if you use each finger as a binary digit. If you try counting in ASCII base 10 digits on your fingers you can only count to 9, or 2^3 + 1.

    5. Re:6 Megabytes?????? by Scott+Wood · · Score: 1

      And since when are there around 1000 bits in a byte? 20996010 bits is approximately 2.5 MiB.

    6. Re:6 Megabytes?????? by jareds · · Score: 1

      21 million bits is not 21 KB, which is 168 thousand bits. It's 20996011 (not 20996010) bits = 2624502 bytes = 2563 kilobytes = 2.503 megabytes.

    7. Re:6 Megabytes?????? by iggymanz · · Score: 1

      heh, since COBOL and RPG allowed it as one possible internal representation. On a not completely unrelated note, gotta love those old Gene Amdahl designed mainframes with their decimal divide instruction.

    8. Re:6 Megabytes?????? by Anonymous Coward · · Score: 0

      Yes, but since this binary number is a string of 200996010 1's, it can be further compressed using run-length-encoding.

    9. Re:6 Megabytes?????? by Anonymous Coward · · Score: 0

      Sorry, 20996010 bits is about 20 Mb.

  18. Hmm by quantaman · · Score: 0

    By my calcs (could easily be wrong) my UID should show up about 6.3 times, turned out to be 7.

    --
    I stole this Sig
  19. Xbox? by k98sven · · Score: 1

    Quick? Has anyone checked yet to see if it factorizes the X-box public key?

    (joke)

  20. 6 Megabytes, eh? by jvmatthe · · Score: 2, Informative

    If the number is 2^20996011 then it will take 2099602 bits to store it, or 2624501 bytes along with 4 extra bits. Let's just call it 2624502 bytes. Now, 2624502 divided by 1024*1024 (number of bytes I'd say are in a megabyte) is about 2.5. Which is all to say that somewhere around 2.5 megabytes would be required to store this number, not 6 megabytes as the post here claims.

    This is all perfectly true, modulo an arithmetic error on my part. :^)

    1. Re:6 Megabytes, eh? by k98sven · · Score: 2, Informative

      Yes, 2.5 megabytes is what it'd take to store it in binary form.

      If we want it in human-readable form, convert to base-10:
      2^20996011 = 10^(20996011*log(2))
      20996011*log(2) is about 6,320,000, decimals.
      1 decimal = 1 char = one byte = 6 Mb.

    2. Re:6 Megabytes, eh? by jvmatthe · · Score: 1
      If we want it in human-readable form...
      Right. Let's pick a USEFUL format. Good idea. ;^) Might as well use cuneiform while you're at it.
    3. Re:6 Megabytes, eh? by cicadia · · Score: 1
      I guess you didn't follow the link - it's a text document, with the prime in question represented as an ASCII base-10 string. 1 byte per digit. 6+ megabytes total.

      It's not the most compact form, to be sure, but it is, as advertised, 6 megabytes of primey goodness.

      --
      Living better through chemicals
    4. Re:6 Megabytes, eh? by jvmatthe · · Score: 1

      You got me. I didn't follow the link. Still, pretty offensive to me to see someone store an integer that way. I spend a whole semester teaching my students to store their data in binary form... :^)

    5. Re:6 Megabytes, eh? by evalhalla · · Score: 1

      I guess that an even more compact way to store it would be the binary representation of 2099601, since we know how to calculate the number.

      Of course, it would be waaaay less impressive :)

    6. Re:6 Megabytes, eh? by Urkki · · Score: 1

      I sure hope you also taught them the significance of byte order... :-)

    7. Re:6 Megabytes, eh? by JohnPM · · Score: 1

      Yes but it's easily compressible by representing it with the number 20996011 which can be stored using 25 bits. :)

      --
      Karma police, I've given all I can, it's not enough, I've given all I can, but we're still on the payroll.
    8. Re:6 Megabytes, eh? by jvmatthe · · Score: 1

      Give that man a cookie. ;^)

      And if someone brings up storing numbers in base 20996011...

    9. Re:6 Megabytes, eh? by JohnPM · · Score: 1

      It gets better! 20996011 is necessarily prime as well. So, it's probably something like the 6 millionth prime, so you could store that using
      only 22 bits! For further compression we'd probably have to prove the Riemann hypothesis. :)

      --
      Karma police, I've given all I can, it's not enough, I've given all I can, but we're still on the payroll.
    10. Re:6 Megabytes, eh? by Tackhead · · Score: 1
      > And if someone brings up storing numbers in base 20996011...

      Mersenne #40: "Almost one of your base are belong to me!"

  21. interesting by nocomment · · Score: 2, Funny
    --
    /* oops I accidentally made a comment, sorry */
    /* http://allyourbasearebelongto.us */
    1. Re:interesting by fatphil · · Score: 1

      Holy cow, I can't believe anyone remembers that now!
      -tugs forelock-

      While I'm here I must show due respect to GIMPS for harnessing hundreds of
      thousands of PCs and bulldozing so convincingly through these ranges.

      Phil

      --
      Also FatPhil on SoylentNews, id 863
    2. Re:interesting by arvindn · · Score: 1
      Holy cow, I can't believe anyone remembers that now!

      Sure we do!

      BTW, Remember me? :)

  22. gigagilgamesh by eyenot · · Score: 0

    surprise, it's actually a seed to algorhtmically produce a startling new gigapixel image of god's buttcrack!

    --
    "Stratigraphically the origin of agriculture and thermonuclear destruction will appear essentially simultaneous" -- Lee
  23. This should be in "YRO" by stienman · · Score: 1, Funny

    This should be in "Your Rights Online" since it contains my personal information:

    Age, DL#, SSN, and even my IP! (19216801)

    Obviously it's a thinly veiled ploy to steal my identity! I'ma gonna have to sue the student who found this. Be sure to check if you're in there! Luckily they don't have my credit card numbers, but I bet the next big prime is going to have all that and more.

    Be afraid. Be very, very afraid.

    -Adam

  24. So what by Anonymous Coward · · Score: 0

    I'm not trying to troll but I have to say ... so what?! How will that help anyone?! It won't. All those CPU cycles could have been used for protein folding or something like that. Something that can save the lives. Finding prime numbers in a pointless exercise.

    1. Re:So what by Kevan_moran · · Score: 1
      Actualy, I thought that this question, modded down to 0 was a good one,"How will that help anyone?! "

      IMAM ( I am a mathematician, well ok I got a Maths degree from Trinity Cambridge ( and I di..dn't like Quicksilver (though I did love Cryptonomicon (and I can write Lisp )))).

      But should I run the Seti screen saver, the Climate predication model or this one?

      My current vote is the CP model but somehow it feels less sexy

      (lastStatement.getSounds()==Statements.SOUNDS_GEEK Y ? statement.replace(lastStatement.text(),lastStateme nt.geekFactor()-1),lastStatement.text())

      Ant deploy

      I guess it's time to go home

  25. New name for this? by dacarr · · Score: 4, Funny

    If one googol is 10^100, would this number be about 6 smeagol?

    --
    This sig no verb.
  26. 6 million digits can be stored in under 6 megabyte by notyou2 · · Score: 1

    It takes 6 megabytes to store 6 million digits if you encode them in ASCII... but this is highly inefficient.

    It would be far more efficient to store them in binary coded decimal (BCD, google for it if you don't know what that is), which requires only 4 bits per decimal digit without sacrificing accessibility of the decimal data. In that case it would only take 3 megabytes.

  27. Re:6 million digits can be stored in under 6 megab by iggymanz · · Score: 1

    why not store them the most efficient way of all (for a binary machine, that is)...in binary! one decimal digit takes log base 2 of 10 ~ 3.32 binary digits, or 1,806,141 binary digits to store 6 million decimal digit number

  28. Re:6 million digits can be stored in under 6 megab by iggymanz · · Score: 1

    P.S.: of course, looking at the exponent of this prime, we see exactly how many binary digit it takes to encode it.

  29. Re:6 million digits can be stored in under 6 megab by notyou2 · · Score: 2, Interesting

    Because that involves an actual conversion between bases, which means that re-extracting (to print the digits out in base 10 again, for example) takes a non-trivial amount of time.

    On the other hand, the number was probably originally calculated using base-2 arithmetic (I'm assuming), so storing in binary might be more natural anyhow.

  30. Not 6 megabytes, not 2 megabytes ... by Anonymous Coward · · Score: 0

    The number is 2**20996011-1 . Count.

    Looks like it takes 13 bytes to express this number.

    You can make any number take up a large amount of memory, it just depends on how you write it. The number 2 can take up a gigabyte if you write it with enough 0's after the decimal space. 2.00000000000000000000000000000000000 blah blah you get the idea.

    13 bytes. End of story.

  31. Re:6 million digits can be stored in under 6 megab by fok · · Score: 1

    bzip2 that's it! ;D

    --
    \m/
  32. mugabytes by epine · · Score: 2, Funny


    How did 21.0 mebibits turn into six megabytes? I think he meant mugabytes.

    Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated, and messages that are too short might be downrated.

  33. You can quote me by Alsee · · Score: 1

    The obvious mathematical breakthrough would be development of an easy way to factor this number.

    -

    --
    - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    1. Re:You can quote me by djcapelis · · Score: 1

      I can factor this SOB in my head!

      1 and 2^20996011 - 1

      Hah!

      --
      I touch computers in naughty places
    2. Re:You can quote me by lordjake · · Score: 1

      The ability to factor primes. Wow, that would be an amazing breakthrough indeed.

  34. Use Base 2^20996011 - 1 and write it as just 10 by Cerpicio · · Score: 1

    Use Base 2^20996011 - 1 and write it as just 10. Seems like that'd be the most efficient way to write it. -- C.

  35. 6 Mbytes to represent? I don't think so. by shrikel · · Score: 1
    So you're saying the number takes 6 Mbytes to represent in ASCII? I can do it in 12 bytes:

    2^20996011-1

    :)

    --
    Any sufficiently simple magic can be passed off as mere advanced technology.
  36. Efficient factoring algorithm by Peter+Millerchip · · Score: 1

    I think you'll find that factoring the product of two huge primes becomes slightly easier when the attacker knows one of the primes!

  37. Quit /.-ing their server by RennieScum · · Score: 1

    Mathematica can figure the number quite nicely. Only took about 10 minutes on a P4 with 256MB RAM.

    Dunno...can python handle this? bc? (heh)

    --
    ...Time is the best teacher, unfortunately it kills all of its students.
  38. Subatomic Particles by Kosher+Beef+Jerky · · Score: 2, Interesting

    I was informed today that there are, in the universe, approximately 10^450 subatomic particles in the world. A prime number of 6 million digits (6* 10^100000) cannot be possibly demonstrated in any real object. I proceeded to calculate: Apparently the highest resolution for a monitor so far is 3840x2400 (Can anyone find higher?) and it would therefore take about 108506945 monitors of this resolution just to display 1 quadrillion pixels... (10^12). Any thoughts?

  39. Ever closer (to something infinitely far away) by SamSim · · Score: 1

    Another prime number? That's great! Not long now until we've found them all!

  40. Sweet! by mcp33p4n75 · · Score: 1

    With this new Mersenne prime one can also form a new largest perfect number. Euclid proved that if 2^k-1 is prime, then 2^(k-1)*(2^k-1) is a perfect number. Anyone care to put this together?

    1. Re:Sweet! by lordjake · · Score: 1

      That new perfect number would have over 12.5 million digits, which would take a while to work out....