| No. of known terms | 5 (+3 probable primes) |
|---|---|
| First terms | 3, 31, 314159 |
| Largest known term | First 16208 digits of pi (probable: first 613373 digits of pi) |
| OEIS index | A005042 |
In mathematics, a pi prime is a prime number appearing in the initial digits of the decimal expansion of the constant pi.
Let be the integer formed by the first digits of pi. We call a pi prime when this value is a prime number. Below is a list of known and probable pi primes.
In 1979, Robert Baillie and Marvin Wunderlich found that is prime.
In 2001, Ed T. Prothro found that the first 16208 digits of pi form a probable prime, and that after , all such numbers with fewer than 16208 digits are composite numbers. In 2026, Robert Baillie proved that was prime.
In 2006, Eric Weisstein showed that the next two possible pi primes have 47577 and 78073 digits. In 2016, A. Bondrescu showed that, after 78073, the next possible pi prime has 613373 digits. As of 2026, it has not been proven that any of these three numbers are primes.
A heuristic argument suggests that the sequence of pi primes is infinite.
An alternative definition considers only the decimal portion of pi, i.e. digits after the starting 3. In this definition we define to be the integer formed by the first digits of the decimal part of pi. Using this definition, is prime when .
The notion of pi primes can be extended to other constants with infinite decimal expansions, for example, e and the golden ratio. Primes of this form are known as constant primes or A-primes.