three hundred septenmilliamilliaquadringensexquadraginmilliaduocenquattuortillion...
Numberphile shows how it was done, and says anyone can download the search program and run it. (You can even win money.)
By the way, appx 2,300 years ago Euclid proved, very simply and elegantly, that there are infinitely many prime numbers. There are other proofs as well.
I wanted to understand how to calculate how many digits this new prime has.
It's pretty clear that the number of digits d(N) for any number N is (in base 10)
where INT(x) returns the integer portion of the number x -- everything to the left of its decimal point. For a Merseene prime this becomes
However, we can't readily compute 2M -- it's too large, but after thinking awhile here's what I came up with:
No power of 2 has a last digit of 0 (easy to prove via induction), so the last digit of 2M does not end in zero. 2M is even, so its last digit is either 2, 4, 6, or 8. So 2M -1 has a last digit of 1, 3, 5, or 7, but not 9 because 2M never has a last digit of 0. (It also can't end in 3 or 5, because it'd be evenly divisible by the same integer; unless it was 3, which is the first Mersenne prime.) So the last digit of 2M-1 can only be 1 or 7.
Hence, the integer part of log10 of 2M-1 will be the same as the integer part of log10 of 2M. So
which is easily calculated -- in this case it comes to 22,338,618.
Wolfram has a list of Mersene primes, with strings of their first several digits and last several digits. Sure enough, they all end in 1 or 7.
Interesting: If 2M-1 is prime, then M is prime. Slate says the 11 largest known primes are all Merseene primes (and the article has other interesting facts about primes). Notably, it has been conjectured ther are an infinite number of Merseene primes, but not proven.
Prime numbers are interesting and weird. Statements about them are often easy to make, but very difficult to prove. They leak into other important areas of mathematics, like Riemann's Hypothesis. It almost seems like there is some hidden part of the geography of all mathematics, relatively simple and straightforward and, like a lost city, just waiting to discovered behind a towering mountain pass. Some 22-year old genius in the year 2273 will finally bridge the gap by going around the pass, not over it, opening up a whole new world.