OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..100
EXAMPLE
3*5-2=13 is prime;
3*5*7-2=103 is prime;
3*5*7*11-2=1153 is prime;
3*5*7*11*13-2=15013 is prime.
MATHEMATICA
nxt[{pr_, a_}]:=Module[{p=NextPrime[a]}, While[CompositeQ[pr*p-2], p=NextPrime[p]]; {pr*p, p}]; NestList[nxt, {3, 3}, 50][[;; , 2]] (* Harvey P. Dale, Mar 30 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Herman H. Rosenfeld (herm3(AT)pacbell.net), Dec 29 2004
EXTENSIONS
Corrected and extended by Emeric Deutsch, Mar 26 2005
More terms from Ryan Propper, Jan 11 2008
STATUS
approved