This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A065595 a(n) = (sum of first n primes)^2 - sum of squares of first n primes. 3
 0, 12, 62, 202, 576, 1304, 2698, 4902, 8444, 14244, 22242, 34082, 50236, 70704, 97118, 131886, 176844, 230524, 297658, 378314, 471608, 584104, 715410, 870982, 1057804, 1271924, 1511090, 1781586, 2080464, 2414944, 2819566, 3270206 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Harry J. Smith, Table of n, a(n) for n=1,...,500 FORMULA a(n) = (A007504(n))^2 - A024450(n). - R. J. Mathar, Oct 07 2011 EXAMPLE a(4) = 202 because (2 + 3 + 5 + 7)^2 - (2^2 + 3^2 + 5^2 + 7^2) = 17^2 - (4 + 9 + 25 + 49) = 289 - 87 = 202 MATHEMATICA With[{prs=Prime[Range[40]]}, Table[Total[Take[prs, n]]^2-Total[Take[ prs, n]^2], {n, 40}]] (* Harvey P. Dale, Dec 04 2011 *) PROG (PARI) { a1=a2=0; for (n=1, 500, a1+=prime(n); a2+=prime(n)^2; write("b065595.txt", n, " ", a1^2 - a2) ) } \\ Harry J. Smith, Oct 23 2009 CROSSREFS Cf. A007504, A024450. Sequence in context: A294682 A177677 A045822 * A267472 A194487 A196312 Adjacent sequences:  A065592 A065593 A065594 * A065596 A065597 A065598 KEYWORD easy,nonn AUTHOR Terrel Trotter, Jr., Dec 01 2001 EXTENSIONS a(26)-a(32) from Harry J. Smith, Oct 23 2009 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified October 19 21:28 EDT 2019. Contains 328244 sequences. (Running on oeis4.)