OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
EXAMPLE
40^2 = 1600. Reversing the digits we get 0061, which is the prime 61 padded with leading zeroes. Hence 1600 is in the sequence.
41^2 = 1681. Reversing the digits we get 1861, which is a prime. Hence 1681 is in the sequence.
42^2 = 1764. Reversing the digits we get 4671 = 3^3 * 173. So 1764 is not in the sequence.
MATHEMATICA
Do[s = i^2; If[PrimeQ[FromDigits[Reverse[IntegerDigits[s]]]], Print[s]], {i, 1, 10^2}] (* Pe *)
Select[Range[100]^2, PrimeQ[FromDigits[Reverse[IntegerDigits[#]]]] &] (* Alonso del Arte, Jan 07 2018 *)
PROG
(PARI) isok(n) = issquare(n) && isprime(fromdigits(Vecrev(digits(n)))); \\ Michel Marcus, Jan 07 2018
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Joseph L. Pe, Mar 12 2002
EXTENSIONS
More terms from Zak Seidov, Jan 26 2005
Edited by N. J. A. Sloane, Dec 23 2007
STATUS
approved