login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A099936
Primes of the form 1 + product of first n prime gaps.
1
2, 3, 5, 17, 257, 12289, 14155777, 169869313, 4076863489, 32318253138475745281, 12806790724213976503626296721408001, 307362977381135436087031121313792001
OFFSET
1,1
LINKS
MATHEMATICA
w[n_]=Prime[n+1]-Prime[n] p[n_]=1+Product[w[m], {m, 2, n}] digits=60 a=Delete[Union[Table[If[PrimeQ[p[n]]==True, p[n], 0], {n, 1, digits}]], 1]
Select[FoldList[Times, Differences[Prime[Range[100]]]]+1, PrimeQ] (* Harvey P. Dale, Jan 02 2021 *)
PROG
(PARI) for(n=1, 60, if(isprime(p=prod(m=1, n, prime(m+1)-prime(m))+1), print1(p, ", ")))
CROSSREFS
Sequence in context: A087911 A347565 A265426 * A237251 A275584 A092506
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 12 2004
EXTENSIONS
Edited by Klaus Brockhaus, Nov 15 2004
STATUS
approved