A131587 Sum of the squares of the first 10^n primes.
4, 2397, 8384727, 19053119163, 34099597499091, 53251529659694763, 76304519151822049179, 103158861357874372432083, 133759354162117403400944283, 168072405102068540986037048787, 206076219788796447007218742841043, 247754953701579144582110673365391267
Offset: 0
Keywords
Examples
The sum of squares of the first 10^1 primes = 2397, the second entry in the sequence.
Links
- Bruce Garner, Table of n, a(n) for n = 0..14
- Cino Hilliard, SumprimesGmpSq.
Programs
-
Mathematica
Accumulate[{Prime[1]^2}~Join~Array[Total[Prime[#]^2 & /@ Range @@ {10^# + 1, 10^(# + 1)}] &, 6, 0]] (* Michael De Vlieger, Mar 14 2021 *)
-
PARI
sumprimesq(n,b) = { local(x,y,s,a); for(y=0,n, s=0; for(x=1,b^y, s+=prime(x)^2; ); print1(s","); ) }
Comments