OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Des MacHale, Infinitely many proofs that there are infinitely many primes, Math. Gazette, 97 (No. 540, 2013), 495-498.
FORMULA
a(n) = A070826(n+1)-2. - R. J. Mathar, May 03 2017
MATHEMATICA
Table[Product[Prime[k + 1], {k, 1, n}] - 2, {n, 1, 40}] (* Vincenzo Librandi, Apr 15 2014 *)
Rest[FoldList[Times, 1, Prime[Range[2, 20]]]]-2 (* Harvey P. Dale, Mar 17 2015 *)
PROG
(Magma) [-2+&*[NthPrime(i+1): i in [1..n]]: n in [1..20]]; // Vincenzo Librandi, Apr 15 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 14 2014
STATUS
approved