OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[ Range[ 2500 ], PrimeQ[ # ] && PrimeQ[ ToExpression[ StringReverse[ ToString[ #^2 ] ] ] ] & ]
PROG
(Magma) [p: p in PrimesUpTo(2000) | IsPrime(Seqint(Reverse(Intseq(p^2))))]; // Vincenzo Librandi, Apr 12 2013
(Python)
from sympy import isprime, primerange
def ok(p): return isprime(int(str(p**2)[::-1]))
print([p for p in primerange(1, 2000) if ok(p)]) # Michael S. Branicky, Dec 27 2021
(PARI) select(p->isprime(fromdigits(Vecrev(digits(p^2)))), primes(1000)) \\ Mohammed Yaseen, Dec 31 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Feb 06 2001
STATUS
approved