OFFSET
1,1
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10000 (terms 0..1000 from T. D. Noe)
EXAMPLE
28 is in the sequence because the reverse of 28^2 is 487 which is a prime. - Indranil Ghosh, Feb 10 2017
MATHEMATICA
Select[ Range[ 1000 ], PrimeQ[ ToExpression[ StringReverse[ ToString[ #^2 ] ] ] ] & ]
Select[Range[500], PrimeQ[IntegerReverse[#^2]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 10 2019 *)
PROG
(Magma) [n: n in [1..500] | IsPrime(Seqint(Reverse(Intseq(n^2))))]; // Marius A. Burtea, Jan 12 2019
(PARI) isok(n) = isprime(fromdigits(Vecrev(digits(n^2)))); \\ Michel Marcus, Jan 12 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Jan 16 2001
STATUS
approved