OFFSET
1,2
EXAMPLE
(3*2*3*5)^2+1 = 8101 is prime, (4*2*3*5)^2+1 = 14401 is prime, and (5*2*3*5)^2+1 = 22501 is prime, so a(3) = 3.
MATHEMATICA
a[n_] := Module[{k = 1, p = Product[Prime[i], {i, 1, n}]}, While[!PrimeQ[(k*p)^2 + 1] || !PrimeQ[((k + 1)*p)^2 + 1] || !PrimeQ[((k + 2)*p)^2 + 1], k++]; k]; Array[a, 10] (* Amiram Eldar, Sep 11 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Oct 02 2004
EXTENSIONS
a(2) corrected and more terms added by Amiram Eldar, Sep 11 2021
STATUS
approved