The Repair of Euler’s Prime Number Formula
THE PRIME NUMBER SERIES 27
Euler’s Prime Number Formula Repaired
Euler discovered the remarkable formula
![]()
which produces an uninterrupted sequence of prime numbers for all
with
, up to .
From n=40 onward, the formula seemingly produces an arbitrary alternation between composite numbers and prime numbers.
I multiplied the formula
by an expression that detects composite values and sets them to 0, while allowing only prime numbers to be displayed.
The repaired formula looks like this:

This formula produces all prime numbers of the original Euler formula. Whether there are infinitely many of the form
has not yet been proven.
If you want to filter out all prime numbers greater than 2, the formula looks like this:

Munich, 3 February 2026
Gottfried Färberböck

