OFFSET
1,1
COMMENTS
Partial sums of the primorials A002110 starting from 2. - Charles R Greathouse IV, Feb 05 2014
All terms are even. From a(98) on, all terms are multiples of 523. - Charles R Greathouse IV, Feb 05 2014
The only values of n for which a(n)/2 is prime are: 3, 5, 7, 11, 15, 47, 49. The corresponding 7 primes are: 19, 1279, 271549, 103631759509, 314142211092671239, 826811434211869939736645732264127163964562391958563586838409421490271014424018927729, 41839936239750050346953677118447851613901200239299781782205558511980130628486398081201749. - Amiram Eldar, May 04 2017
LINKS
FORMULA
EXAMPLE
a(4) = 248 because p_1 + p_1*p_2 + p_1*p_2*p_3 + p_1*p_2*p_3*p_4 = 2 + 6 + 30 + 210 = 248.
a(5) = 2558: A002110(3) = 30, A286624(4) = 85, a(2) = 8; 30*85 + 8 = 2558. - Bob Selcoe, Oct 12 2017
MAPLE
for n from 1 to 30 do printf(`%d, `, sum(product(ithprime(i), i=1..j), j=1..n)) od:
MATHEMATICA
Accumulate[Denominator[Accumulate[1/Prime[Range[20]]]]] (* Alonso del Arte, Mar 21 2013 *)
Accumulate@ FoldList[Times, Prime@ Range@ 17] (* Michael De Vlieger, May 04 2017 *)
PROG
(PARI) a(n)=my(s, P=1); forprime(p=2, prime(n), s+=P*=p); s \\ Charles R Greathouse IV, Feb 05 2014
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Jason Earls, Apr 04 2001
EXTENSIONS
More terms from James A. Sellers, Apr 05 2001
STATUS
approved