|
|
A131592
|
|
Sum of the squares of the first n^n primes.
|
|
0
|
|
|
4, 4, 87, 86606, 204330315, 792563962432, 4719861842243387, 41451006295401961098, 518092272952383680058459, 8925618852825931358421021092, 206076219788796447007218742841043
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Define 0^0 = 1 for this sequence.
|
|
LINKS
|
|
|
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
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|