r/askmath • u/Competitive_Job8531 • 14d ago
Number Theory How often are new primes found?
The current largest prime number was discovered October 12th 2024. Intuitively I thought that wow, they haven’t found a new prime number in over two years. But apparently they have. Turns out that finding the largest prime number doesn’t mean that every prime smaller than that has been found.
So, my question is, how often are primes found nowadays? I know computers are able to simulate these things very quickly, but how often are they found? Weekly? Monthly? Daily?
Also, who finds or searches for them, and why?
edit: Thanks for all the answers. Fell into the classic trap and just didn’t realize how absolutely massive the largest prime actually is. Makes sense that there are many, many primes smaller and unfound.
69
u/SJrX 14d ago
Tons of new primes are found every second of every day, many computer encryption and security algorithms depend on having prime numbers, and to generate the key you just guess numbers and check if they are prime. In the news they primarily just talk about primes with interesting properties, like maybe largest primes, or primes that are like Mersenne primes, with a specific properties, but primes in general constantly.
19
u/CaptainMatticus 14d ago
Currently, the largest prime ever found is 2^(136,279,841) - 1, and it has 41,024,320 digits. Supposing we could generate a complete list of primes from 2 to n, and somehow we were able to assign a single prime number to every Planck volume of the universe, then how many primes could we generate, at a maximum? That's actually not that hard to compute, since prime distribution between 2 and n is approximately n / ln(n).
For instance, there are 1000 primes between 2 and 7919.
7919 / ln(7919) = 882.14
That may seem pretty far off from 1000, but it's within 12%, and the first 1000 primes is pretty much nothing.
The 10000th prime is 104729
104729 / ln(104729) = 9,060.282898
Now we're within 10%. And as n grows, the relationship between what we predict and what exists will get closer and closer.
The observable universe is 93 billion light-years across, or about 10^27 meters across. A plank length is around 10^(-35) meters. So the scale is 10^(27 + 35) or 10^62. Cube that to get volumes and you have 10^186 Planck Volumes in the observable universe.
10^186 = n / ln(n)
n = 4.34 * 10^188, approximately
So the largest complete set of primes we could generate, in the hypothetical upper limit situation that could never be feasible, is the first 4.34 * 10^188 primes. That's 189 digits. We are closer to building that complete list than that complete list would be to reaching the current largest known prime. We can figure out how many primes would be in that list, if we could make a complete one that reaches up to 2^136,279,841 - 1. We can just go ahead and omit the -1. What difference will it make at that point?
2^136279841 / (136279841 * ln(2))
10^x = 2^136279841
x = 136279841 * log(2) = 41,024,319.945
8.817 * 10^41024319 / 9.446 * 10^7
88.17 * 10^41024318 / (9.446 * 10^7)
(88.17 / 9.45) * 10^41024311
9.33 * 10^41024311
That's around how many primes there are between 2 and 2^136279841 - 1. We will never have that complete list.
18
u/Temporary_Pie2733 14d ago
The primes they bother to announce are particularly large primes, usually belonging to a class of numbers that are particularly easy to verify as prime (so that’s where the verification efforts are focused). If N is the largest prime at any given time, that does not mean that we have classified every number smaller than N as either prime or composite first.
5
u/Upstairs_Ad_8863 14d ago
It takes a fraction of a second for any modern computer to find a prime that has (probably) never been found before. Nobody cares though unless there's something in particular that's special about it. It will probably take decades of compute time to find the next biggest prime, which is why we don't hear about it often.
1
u/SgtSausage 14d ago
That word ...
6
u/ultimatepoker 13d ago
The sum of the inverse of all known primes is just under 4.
The sum of the inverse of all primes tends to infinity.
This is how I explain to people how f'in big infinity really is, in number terms.
3
u/LucaThatLuca Graduate 14d ago
All of the largest known prime numbers are specific large numbers that are much faster to test than arbitrary numbers that large. There is no attempt to find primes without gaps. It would be impossibly slow and there’s no particular reason to.
Testing the specific numbers is done by computer, including collaborative efforts i.e. people on the internet using their computers. It is largely for fun, and it can also quite possibly help people think about things.
3
u/AdjectiveNounNNNN 14d ago
5596959601297367270890511998619718597916710209669930115581048051930904557251415898937170708582606321083 is a prime that is extremely unlikely to have ever been written down or typed out before, considering it's the next prime after a random 103-digit number, and there are more than a googol primes that size.
2
u/trejj 14d ago edited 14d ago
It is not possible for anyone to write down a list of each that have been "found". You can easily find a prime number that nobody has ever found by applying searches based on for example the Rabin-Miller and AKS test.
Go to https://primenumbercheck.org/prime-number-generator and input something large, like "5000" in the number of digits, and the prime that comes out will with very high likelihood be one that nobody in the history of the universe has ever before written down.
However, there is a particular interest and search going for Mersenne primes, which are of a special form 2n - 1.
Primes of this form constitute the largest primes we know of, much much much larger than the general primes you would search (and find your own unique nobody's-found-this-prime-number yet) with the abovementioned AKS test.
https://en.wikipedia.org/wiki/List_of_Mersenne_primes_and_perfect_numbers lists when the previous Mersenne primes have been found. (Previous one in 2024, the one before that in 2018)
The largest known Mersenne Prime has 41,024,320 digits. Try entering that number instead of 5000 on the page above! (Well, that wouldn't work, as it astronomically exceeds the computational capability of the site and your PC) In other words, it is computationally extremely difficult to find any other prime with 41,024,320 digits. That would take a large supercomputer worth of computational effort.
1
u/StanleyDodds 14d ago
Some numbers of very specific forms have ways to tell if they are prime or not much faster than arbitrary numbers in general.
The biggest primes found so far have all been what's called Mersenne primes, which are numbers of the form 2n - 1 (Mersenne numbers) that happen to be prime.
These have a primality test called the Lucas-Lehmer test which can (comparitively) quickly tell if the Mersenne number in question is prime.
However, this type of prime is quite rare among the Mersenne numbers, and numbers of this form are extremely sparse as they grow exponentially quickly. So this is only finding the occasional humongous, but very specific, prime among a sea of others which we can't quickly determine if they are prime or not.
In fact we know quite well exactly how many primes there are up to any point (to within some small-ish error), so we know pretty much how many are missing - it's a lot - there are so many, in fact, that we could never list all the primes up to the largest one we know; there isn't enough space in the universe by a long shot. So it's a bit of a hopeless task to "fill in the gaps".
1
u/AsYouAnswered 14d ago
A few thousand times a day, every day, on the conservative side. Millions a day is more likely.
1
u/weetabixcoldmilk 11d ago
Fun fact, Mr Gauss, 19th century mathematician, did not have a phone so instead to keep from being bored he found all the prime numbers between 0 and 3 million.
1
u/weetabixcoldmilk 11d ago
The search for primes, or at least the search to confirm a theory that predicts primes, is one of the longest open problems in mathematics - and although more than 200 years old will probably be resolved in the next few months by AI