OFFSET
1,1
COMMENTS
REFERENCES
M. Aigner, Diskrete Mathematik, Vieweg u. Teubner, 6. Aufl., 2006.
E. Grosswald, Representations of Integers as Sums of Squares, Springer-Verlag, Berlin, 1985.
H. Scheid, Zahlentheorie, Spektrum Akademischer Verlag, 4. Aufl., 2006.
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1570
MATHEMATICA
fHQ[n_]:=Plus@@IntegerDigits@n==Plus@@IntegerDigits@PrimePi@n; Select[Range[10000]^2+1, PrimeQ[#] && fHQ[#] &] (* K. D. Bajpai, Apr 06 2021 *)
PROG
(PARI) for(n =1, 50000, my(k=n^2+1); if(isprime(k) && vecsum(digits(k))==vecsum(digits(primepi(k))), print1(k, ", "))); \\ K. D. Bajpai, Apr 06 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Ulrich Krug (leuchtfeuer37(AT)gmx.de), Apr 26 2010
EXTENSIONS
Comments tightened by R. J. Mathar, Jun 07 2010
a(21)-a(29) from K. D. Bajpai, Apr 06 2021
STATUS
approved