
Mathematicians have spent millennia trying to understand prime numbers 鈥 those only divisible by themselves and 1 鈥撀 but so far no one has discovered a pattern for the primes. Now mathematician Simon Plouffe has discovered a new method to produce long sequences of prime numbers, improving on previous efforts.
For example, we鈥檝e known since the 18th century that n虏 + n + 41 is prime for values of n up to 39. It breaks down at n = 40, as the formula gives 1681, which is equal to 41虏 and thus not prime.
Other types of prime-generating formulas start with a carefully chosen number and use this to generate a string of primes. If you start with n = 1.92878, calculate 2n and replace n with this new value, you get a sequence of numbers. Ignore everything after the decimal points and the first three numbers in the sequence are prime.
Advertisement
By tweaking the value of n more precisely, you can generate even more prime numbers. As many as you want, in fact 鈥 but you won鈥檛 be able to generate all the primes. That鈥檚 because the sequence grows far too rapidly, skipping many primes and becoming more difficult to calculate. The function described above generates 3 and then 13, skipping out 5, 7 and 11. After that it jumps to 16,381, followed by a prime 4932 digits long 鈥 that鈥檚 nearly 105000 times bigger.
Plouffe has tried to find a middle ground 鈥 something that doesn鈥檛 grow too quickly, but will work indefinitely, unlike the n虏 + n + 41 example. He starts with a carefully chosen prime number, 10500 + 961, and uses a formula that generates a string of digits that produce a prime around 100,000 times bigger. Applying the formula again produces another prime, again only 100,000 times bigger, so the sequence grows reasonably slowly.
Using this method, Plouffe was able to generate 50 primes 鈥 more than any other prime-generating algorithm to date. It鈥檚 not magic though. 鈥淵ou have to know the primes in order to get the formula that produces the primes,鈥 says Neil Sloane, founder of the .
It鈥檚 interesting that this process works, but for now it remains a curiosity. 鈥淭here鈥檚 not going to be a simple elementary formula for [all] the prime numbers鈥, says Sloane. This result shows that as much as we know, we鈥檙e still barely scratching the surface.
Reference:听
Further reading:听Riddle of the primes: why do they come in pairs?