An emirp (pronounced or , an anadrome of prime) is a prime number that results in a different prime when its decimal digits (digits in base 10) are reversed. This definition excludes the related palindromic primes. The term reversible prime has been used for the union of the emirps and palindromic primes. The first few emirps are
13, 17, 31, 37, 71, 73, 79, 97, 107, 113, 149, 157, 167, 179, 199, ... (sequence A006567 in the OEIS). The first few reversible primes are
2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, 97, 101, 107, ... (sequence A007500 in the OEIS). The difference between an emirp and its reversal is always a multiple of 18. It is divisible by 2 because both are odd, and the difference between any number and its reversal is divisible by 9. (This follows digit-by-digit as a consequence of 10n−1 being a multiple of 9 for every non-negative integer n). All non-palindromic permutable primes are emirps. It is not known whether there are infinitely many emirps. The largest known emirp as of April 19, 2026 is 10111956 - 7 × 1053855 - 1 by Ryan Propper and Serge Batalov. The integer's reverse is 10111956 - 7 × 1058100 - 1.
History
The term "emirp" was coined by American mathematician Jeremiah Farrell.
Count of emirps The following table shows the number of n-digit emirps and reversible primes: (sequences A152014 and A048054 in the OEIS)
The number of n-digit reversible primes is equal to the number of n-digit emirps plus the number of n-digit palindromic primes.
Largest known emirps The following table shows the largest known emirps throughout the years:
Other bases Emirps also exist for bases other than 10. For example, 101112 = 23 is an emirp in the binary numeral system because 23 is a prime and its reverse 111012 = 29 is also a prime. The first few binary emirps are
11, 13, 23, 29, 37, 41, 43, 47, 53, 61, 67, 71, 83, 97, 101, ... (sequence A080790 in the OEIS). Dartyge et al. (2023) have shown that, in big-O notation, the number of n-digit reversible primes in binary is O(2nn2). They also conjecture that the number of n-digit reversible primes in binary is (3+o(1))2n−1(log2n)2 as n goes large.
Emirpimes The term emirpimes (singular) is used also in places to treat semiprimes in a similar way. That is, an emirpimes is a semiprime that is also a (distinct) semiprime upon reversing its digits. The first few emirpimeses are
15, 26, 39, 49, 51, 58, 62, 85, 93, 94, 115, 122, 123, ... (sequence A097393 in the OEIS).
References