login
A131592
Sum of the squares of the first n^n primes.
0
4, 4, 87, 86606, 204330315, 792563962432, 4719861842243387, 41451006295401961098, 518092272952383680058459, 8925618852825931358421021092, 206076219788796447007218742841043
OFFSET
0,1
COMMENTS
Define 0^0 = 1 for this sequence.
FORMULA
a(n) = A024450(A000312(n)). - Amiram Eldar, Jul 01 2024
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
Sequence in context: A351349 A222271 A068376 * A317868 A224092 A217188
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