OFFSET
1,2
COMMENTS
This is the semiprime analog to A014545.
EXAMPLE
4*6*9*10+1 = 2161 which is prime.
MATHEMATICA
NextSemiPrime[n_, k_: 1] := Block[{c = 0, sgn = Sign[k]}, sp = n + sgn; While[c < Abs[k], While[ PrimeOmega[sp] != 2, If[sgn < 0, sp--, sp++]]; If[sgn < 0, sp--, sp++]; c++]; sp + If[sgn < 0, 1, -1]]; f[n_] := Times @@ NestList[NextSemiPrime, 2^2, n - 1]; k = 1; lst = {}; While[k < 4651, If[ PrimeQ[f[k] + 1], Print[k]; AppendTo[lst, k]]; k++]; lst
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jonathan Vos Post and Robert G. Wilson v, Apr 02 2013
EXTENSIONS
a(23) from Tyler Busby, Feb 12 2023
STATUS
approved