I am doing some research and I cannot seem to find the answer anywhere so does anyone know who found the expression $n^2 - n + 41 $ for generating prime numbers?
Who found the expression $n^2 - n + 41 $ for generating prime numbers?
2.4k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 4 best solutions below
On
Euler first noticed (in 1772) that the quadratic polynomial $$ P(n) = n^2 + n + 41 $$ is prime for all natural numbers less than 40.
On
As others have noted, Euler, in 1772 published this result in a very similar form (see @draks... answer).
Note however, that he published the quadratic $n^2+n+41$, not $n^2-n+41$.
My contribution: This result was stated in Nouveaux Mémoires de l'Académie royale des Sciences. Berlin, p. 36, 1772, by L. Euler.
On
Some context, the polynomial $n^2 + n + 41$ is prime for $0 \leq n \leq 39.$ It cannot possibly be prime for $n=40$ or $n=41$ because $n^2 + n + 41$ is then divisible by $41$ but larger than $41.$
It is a simple result, that $n^2 + n + k$ can only represent such a large initial sequence of primes, $0 \leq n \leq k-2,$ when both $k$ and $4k-1$ are prime. Furthermore, Rabinowitz, 1913, given those conditions, showed this happens if and only if the class number of discriminant $-(4k-1)$ is one. I give a proof of this at Is the notorious $n^2 + n + 41$ prime generator the last of its type?
Later, https://en.wikipedia.org/wiki/Stark%E2%80%93Heegner_theorem this was shown to be the last time this happens.
It's Euler who first found it. He mentions that formula in 1771 in a letter to Bernoulli. The relevant passage is shown below, in particular the second paragraph:
My translation: