OFFSET
0,1
COMMENTS
Define 0^0 = 1 for this sequence.
FORMULA
EXAMPLE
The sum of the squares of the first 2^2 primes is a(2) = 4 + 9 + 25 + 49 = 87.
MATHEMATICA
Join[{4}, Table[Total[Prime[Range[n^n]]^2], {n, 7}]] (* Harvey P. Dale, Jun 13 2016 *)
PROG
(PARI) sumprimesq(n) = { local(x, y, s, a); for(y=0, n, s=0; for(x=1, y^y, s+=prime(x)^2; ); print1(s", "); ) }
(PARI) lista(pmax) = {my(s = 0, k = 0, n = 1, nn = 1); print1(4, ", "); forprime(p = 2, pmax, k++; s += p^2; if(k == nn, print1(s, ", "); n++; nn = n^n)); } \\ Amiram Eldar, Jul 01 2024
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Cino Hilliard, Aug 30 2007
EXTENSIONS
a(7) from Harvey P. Dale, Jun 13 2016
a(8)-a(10) from Amiram Eldar, Jul 01 2024
STATUS
approved