OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
EXAMPLE
The first term of this sequence is the sum of the first 1 primes plus the product of the first 1 primes. Thus, 2+2 = 4.
The second term of this sequence is the sum of the first 2 primes plus the product of the first 2 primes. Thus, (2+3)+(2*3) = 11.
Etc..
MATHEMATICA
Table[Sum[Prime[i], {i, n}] + Product[Prime[i], {i, n}], {n, 30}] (* T. D. Noe, Aug 16 2013 *)
Module[{nn=20, pr}, pr=Prime[Range[nn]]; Accumulate[pr]+FoldList[Times, pr]] (* Harvey P. Dale, Apr 18 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Derek Orr, Aug 15 2013
STATUS
approved