OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
13 is a member because 13 is prime and the digit-sum of its square is 1+6+9=16, which is also square.
MATHEMATICA
Select[Prime[Range[250]], IntegerQ[Sqrt[Total[IntegerDigits[#^2]]]]&] (* Harvey P. Dale, Aug 30 2016 *)
PROG
(PARI) isok(n) = if (! isprime(n), 0, d = digits(n^2); issquare(sum(i=1, #d, d[i]))) \\ Michel Marcus, Jun 20 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Christopher Schloetz (cschloetz(AT)hotmail.com), Nov 09 2002
EXTENSIONS
More terms from Michel ten Voorde Jun 13 2003
STATUS
approved