%I #30 Nov 06 2017 22:31:29
%S 71,1997,2707,3407,32647,143509,177131,196073,273433,292517,360977,
%T 418447,477341,578789,981769,1066867,1079269,1125559,1394539,2024831,
%U 2246851,2679493,3659401,3736351,4932637,5148233,5479939,5726257,5726321,5755051,7070093,7091339,7789289,8082419
%N Primes p such that the sum of the squares of the digits of p plus p is the square of a prime.
%H Charles R Greathouse IV, <a href="/A225741/b225741.txt">Table of n, a(n) for n = 1..3016</a>
%e 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.
%o (PARI) ssd(n)=my(d=digits(n));sum(i=1,#d,d[i]^2)
%o is(n)=my(t);issquare(ssd(n)+n,&t) && isprime(t) && isprime(n) \\ _Charles R Greathouse IV_, Aug 13 2013
%K nonn,base,less
%O 1,1
%A _Will Gosnell_, Aug 13 2013
%E a(5)-a(34) from _Charles R Greathouse IV_, Aug 13 2013
|