OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..3016
EXAMPLE
71 is a member since 71+(7^2+1^2)=11^2, 1997 is a member since 1997+(1^2+9^2+9^2+7^2)= 47^2.
PROG
(PARI) ssd(n)=my(d=digits(n)); sum(i=1, #d, d[i]^2)
is(n)=my(t); issquare(ssd(n)+n, &t) && isprime(t) && isprime(n) \\ Charles R Greathouse IV, Aug 13 2013
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Will Gosnell, Aug 13 2013
EXTENSIONS
a(5)-a(34) from Charles R Greathouse IV, Aug 13 2013
STATUS
approved