OFFSET
1,2
COMMENTS
The analogous sequence for the natural numbers gives the squares.
FORMULA
From Ridouane Oudra, Aug 31 2019: (Start)
a(n) = Sum_{i=1..n} (prime(n+i) - prime(i)), where prime(i) = A000040(i).
PROG
(PARI) s1=0:s2=0:for(n=1, 50, s1=s1+prime(n):s2=s2+prime(2*n)+prime(2*n-1):print1(s2-2*s1", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 05 2002
EXTENSIONS
More terms from Ralf Stephan, Mar 30 2003
Rewrote definition, changed offset. - N. J. A. Sloane, Aug 31 2019
STATUS
approved