OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..500
FORMULA
EXAMPLE
a(4) = 376 because (2 + 3 + 5 + 7)^2 + (2^2 + 3^2 + 5^2 + 7^2) = 17^2 + (4 + 9 + 25 + 49) = 289 + 87 = 376.
MATHEMATICA
nn=50; With[{prs=Prime[Range[nn]]}, Table[Total[Take[prs, n]]^2+ Total[Take[prs, n]^2], {n, nn}]] (* Harvey P. Dale, Aug 20 2011 *)
PROG
(PARI) { s=ss=0; for (n=1, 500, p=prime(n); s+=p; ss+=p^2; write("b065762.txt", n, " ", s^2 + ss) ) } \\ Harry J. Smith, Oct 30 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Terrel Trotter, Jr., Dec 04 2001
EXTENSIONS
More terms from Harvey P. Dale, Aug 20 2011
STATUS
approved