OFFSET
0,2
COMMENTS
The cumulative sum is prime for a(2) = 3, a(4) = 37, a(8) = 7477, a(12) = 7099871, a(16) = 15554495573. The sum a(n) is semiprime for n = 2, 9.
FORMULA
a(n) = 0## + 1## + ... + n##, where n## = p(n)*(n-2)##, where p(n) is the n-th prime.
EXAMPLE
n 0## + ... + n##
0 1.
1 1+2 = 3.
2 1+2+3 = 6.
3 1+2+3+10 = 16.
4 1+2+3+10+21 = 37.
5 1+2+3+10+21+110 = 147.
6 1+2+3+10+21+110+273 = 420.
7 1+2+3+10+21+110+273+1870 = 2290.
8 1+2+3+10+21+110+273+1870+5187 = 7477.
9 1+2+3+10+21+110+273+1870+5187+ 43010 = 50487.
10 1+2+3+10+21+110+273+1870+5187+ 43010 + 150423 = 200910.
MATHEMATICA
p[0]=1; p[1]=2; p[n_] := p[n] = Prime[n]*p[n - 2]; Accumulate[p /@ Range[0, 22]] (* Giovanni Resta, Jun 14 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Feb 12 2006
EXTENSIONS
Data corrected by Giovanni Resta, Jun 14 2016
STATUS
approved