A circular prime is a prime number with the property that the number generated at each intermediate step when cyclically permuting its (base 10) digits is also prime. For example, 197 is a circular prime because 197, 971, and 719 are all prime numbers.
Definition
Let $p$ be a prime number with $k$ digits $d_1 d_2 \dots d_k$. The number $p$ is a circular prime if and only if all $k$ numbers formed by cyclic permutations of its digits: $$ d_1 d_2 \dots d_k, \quad d_2 d_3 \dots d_k d_1, \quad \dots, \quad d_k d_1 \dots d_{k-1} $$ are prime numbers.
Properties
- Single-digit primes: All single-digit primes (2, 3, 5, 7) are trivially circular primes.
- Digit restrictions: In base 10, any circular prime with more than one digit can only consist of the digits 1, 3, 7, and 9. This is because if any digit were 0, 2, 4, 5, 6, or 8, at least one cyclic permutation would be divisible by 2 or 5 (and therefore composite, provided the number has more than one digit).
- Repunit primes: All repunit primes (primes consisting entirely of the digit 1, such as 11, 1111111111111111111) are circular primes, as every permutation results in the same number.
- Permutable primes: Every circular prime is a permutable prime (a prime that remains prime under any permutation of its digits), but the converse is not necessarily true for numbers with repeated digits if not all permutations are considered distinct cycles. However, for distinct digits, the sets largely overlap.
Known Circular Primes (Base 10)
The complete list of known circular primes in base 10 consists of:
- The single-digit primes: 2, 3, 5, 7.
- The two-digit primes: 11, 13, 17, 31, 37, 71, 73, 79, 97.
- The three-digit primes: 113, 131, 197, 199, 311, 337, 373, 719, 733, 919, 971, 991.
- Larger repunit primes: $R_{19}$, $R_{23}$, $R_{317}$, $R_{1031}$, $R_{49081}$, $R_{86453}$, $R_{109297}$, $R_{270343}$ (where $R_n$ denotes the repunit with $n$ ones).
It is conjectured that there are no non-repunit circular primes with more than three digits (i.e., no circular primes with 4 or more digits other than repunits), but this has not been proven. The sequence of circular primes is listed as OEIS A016114.
Other Bases
The concept applies to any integer base $b$. In base 2, the only circular primes are the Mersenne primes (repunits in base 2). In general, for a number to be a circular prime in base $b$, its digits must be coprime to $b$.