OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (first 100 terms from Jesse Endo Jenks)
EXAMPLE
89 is a term since 89^2 = 7921 and 1297 is prime, and 89^3 = 704969 and 969407 is prime.
MATHEMATICA
Select[Range[10^4], AllTrue[IntegerReverse@ {#^2, #^3}, PrimeQ] &] (* Michael De Vlieger, Oct 23 2018 *)
PROG
(PARI) isok(n) = isprime(fromdigits(Vecrev(digits(n^2)))) && isprime(fromdigits(Vecrev(digits(n^3)))); \\ Michel Marcus, Oct 23 2018
(Python)
from sympy import isprime
A320909_list = [n for n in range(1, 10**6) if isprime(int(str(n**2)[::-1])) and isprime(int(str(n**3)[::-1]))] # Chai Wah Wu, Jan 24 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jesse Endo Jenks, Oct 23 2018
STATUS
approved