OFFSET
1,1
EXAMPLE
a(4) = 9*11+2= 101, as 9 is composite.
PROG
(PARI) a(n) = {pr = 2*n+1; if (isprime(pr), return (pr)); pa = pr; ok = 0; while (! ok, pa += 2; pr *= pa; ok = isprime(pr + 2); ); pr + 2; } \\ Michel Marcus, Sep 16 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 20 2005
EXTENSIONS
More terms from Victoria Sapko (vsapko(AT)frc.mass.edu), Sep 28 2007
Corrected and extended by Michel Marcus, Sep 16 2013
STATUS
approved