login
Number of n-digit primes that are the sum of six consecutive squares of nonnegative numbers.
4

%I #23 Feb 19 2018 14:31:54

%S 0,0,4,10,15,49,147,407,1084,3010,8756,25145,73424,215375,631828,

%T 1870092,5562131,16584139,49630873,148917071,448088250

%N Number of n-digit primes that are the sum of six consecutive squares of nonnegative numbers.

%C These are the primes of the form 91 + 42*k + 6*k^2.

%F a(n) = A218212(n) - A218212(n-1)

%t n = 0; Table[cnt = 0; While[n++; p = 91 + 42*n + 6*n^2; p < 10^e, If[PrimeQ[p], cnt++]]; n--; cnt, {e, 14}] (* _T. D. Noe_, Oct 23 2012 *)

%Y Cf. A027866, A027867, A218207, A218209, A218212.

%K nonn,base,more

%O 1,3

%A _Martin Renner_, Oct 23 2012

%E a(13)-a(21) from _Chai Wah Wu_, Feb 12 2018

%E a(2) changed back to 0 by _Chai Wah Wu_ and _N. J. A. Sloane_, Feb 13 2018