OFFSET
1,1
COMMENTS
"Reversible prime" means a palindromic (here: wing) prime (A077798 c A002385) or an emirp (cf. A006567). These primes are also near-repdigit primes here, with all k digits 9 except for one digit 4.
The definition implies that 0 < m < k, and WLOG we can assume m < k/2; then 10^k - 5*10^m - 1 is the larger and 10^k - 5*10^(k-m-1) - 1 is the smaller of the two emirps, unless 2m = k-1, in which case its a palindromic wing prime (PWP).
EXAMPLE
For k = 15, m = 5, we have 10^15 - 1 - 5*10^8 = 999999999599999, an emirp, with reverse prime 999995999999999.
PROG
CROSSREFS
KEYWORD
nonn,base,hard,more,new
AUTHOR
M. F. Hasler, Mar 24 2026
EXTENSIONS
a(10)-a(12) from Michael S. Branicky, Mar 28 2026
STATUS
approved
