OFFSET
1,4
COMMENTS
This is one possible generalization of "the least prime problem" for n*k+1 arithmetic progression when n is replaced by n!, a special difference.
LINKS
EXAMPLE
a(7)=3 because in progression of 5040*k+1 the terms 5041 and 10081 are not prime and so 15121 is the first prime.
MATHEMATICA
Table[k = 1; While[! PrimeQ[1 + k*n!], k++]; k, {n, 85}] (* T. D. Noe, Nov 04 2013 *)
PROG
(PARI) a(n) = my(k=1); while(!isprime(k*n!+1), k++); k; \\ Michel Marcus, Sep 26 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(80) corrected by Alex Ratushnyak, Nov 03 2013
Simpler title by Sean A. Irvine, Sep 25 2020
STATUS
approved