Number lovers around the world received a special treat this Christmas: on December 21, 2018, the discovery of a previously unknown prime number was announced.

has an impressive 24,862,048 digits, which makes it the largest prime number known to humanity.

Some of the nearly 25 million digits of the newly discovered prime. You can see the number in its entirety here.

Primes are natural numbers that can only be divided by 1 and themselves. The first five primes are 2, 3, 5, 7, and 11. People have known since the time of the ancient Greeks that there are infinitely many prime numbers, but there is no quick and easy way to find them all. This is why every new discovery of a prime number makes mathematical headlines.

The latest addition to the list of known primes was discovered by the Great Internet Mersenne Prime Search (GIMPS), a grassroots computing project in which volunteers download a free program which searches for prime numbers and run it on their computers. Everyone lucky enough to find a new prime gets a cash reward.

This time around the lucky discoverer was Patrick Laroche from Ocala, Florida, who has been using GIMPS software to stress test his computer builds for years. He only started actually hunting for primes recently and was rewarded after less than four months on only his fourth try. It's an extremely lucky find: some GIMPS prime hunters have searched for over twenty years without success. Laroche is eligible for $3,000 in cash as a reward.

In its search for new primes GIMPS only considers numbers that are of the form where is a known prime (for the new discovery, ). It's quicker to test whether these Mersenne numbers, as they are called, are prime then it is to test other numbers. But this doesn't mean it's an easy feat: the proof that the latest discovery really is prime took twelve days of non-stop computing on a machine with an Intel i5-4590T CPU.

Laroche's lucky discovery comes within a lucky streak in the GIMPS project as a whole, which may shed light on how the Mersenne primes are distributed among the other numbers. By looking at the distribution of the first Mersenne primes to be discovered mathematicians had come up with a formula for working out, at least asymptotically, the number of Mersenne primes you might expect to find in a given stretch of the number line. Yet, the number of Mersenne primes that GIMPS has found in the stretch from

is twelve: that's three times as many as the formula would suggest. "This anomaly is not necessarily evidence that existing theories on the distribution of Mersenne primes [are] incorrect," says the GIMPS website. "However, if the trend continues it may be worth further investigation."

Mersenne primes are interesting for another reason too. Since the time of the ancient Greeks, and perhaps before, people have been beguiled by *perfect numbers*: natural numbers which are equal to the sum of their proper devisors. The smallest perfect number is because . The next perfect number along is , followed by and .

Perfect numbers are rare gems — the ancients only knew the four mentioned above. However, Euclid proved that once you get your hands on a Mersenne prime you get an even perfect number for free: if the Mersenne prime is , then the number

The perfect number stemming from the newly discovered Mersenne prime is

and has over 49 million digits. We now know of 51 perfect numbers and 51 Mersenne primes.

Will we continue to find new Mersenne primes and perfect numbers? We can't be sure — mathematicians believe that there are infinitely many of both, so the supply will never run out, but nobody has been able to prove this. We also don't know if all perfect numbers are even, as the ones discovered so far, or whether there also are odd ones. These are some of the great mysteries of mathematics.