OFFSET
1,1
COMMENTS
Because numbers of the form (k! + prime) are divisible by all primes <= k that means that the first prime number can have the form k! + next prime after k! and no primes of the form k! + m for m > 1 and m < next prime after k!.
MATHEMATICA
a = {}; Do[If[PrimeQ[n! + NextPrime[n!, 2]], AppendTo[a, n]], {n, 1, 200]; a
PROG
(PARI) is(k) = {my(f = k!); isprime(f + nextprime(nextprime(f + 1) + 1)); } \\ Amiram Eldar, Oct 23 2024
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Artur Jasinski, Apr 12 2008
EXTENSIONS
a(15)-a(20) from Amiram Eldar, Oct 23 2024
a(21) from Michael S. Branicky, Oct 24 2024
STATUS
approved