OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[1000]^2, PrimeQ[Total[IntegerDigits[#]]]&]
PROG
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } { n=0; for (m=1, 10^9, if (isprime(SumD(m^2)), write("b065408.txt", n++, " ", m^2); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 18 2009
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jason Earls, Nov 22 2001
STATUS
approved