OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..25
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
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 12 2004
EXTENSIONS
Edited by Klaus Brockhaus, Nov 15 2004
STATUS
approved