OFFSET
1,2
FORMULA
EXAMPLE
The 9th prime is 23, 23 reversed is 32, and 32 = 2^5, so 9 is a term.
PROG
(Python)
import sympy
for (k, p) in enumerate(sympy.primerange(10**8)):
rev = int(str(p)[::-1])
# is rev a power of two (or zero)?
if rev & (rev - 1) == 0:
print(k + 1, end=", ")
print()
CROSSREFS
KEYWORD
base,nonn,more,new
AUTHOR
Kalle Siukola, Jan 06 2025
EXTENSIONS
a(8)-a(10) from Amiram Eldar, Jan 07 2025
STATUS
approved