OFFSET
1,2
COMMENTS
Note that Maple, PARI etc. have different notions of what "next prime" means!
Next term is > 7500. - Jacques Tramu, Sep 12 2018
Next term is > 10^4. - Michael S. Branicky, Aug 09 2024
EXAMPLE
8 is in the sequence because 8*8!+ 11 is prime.
MATHEMATICA
<< NumberTheory`NumberTheoryFunctions`; v={}; Do[If[PrimeQ [n*n!+NextPrime[n]], v=Append[v, n]; Print[v]], {n, 2400}]
PROG
(PARI) isok(n) = isprime(n*n! + nextprime(n+1)); \\ Michel Marcus, Sep 13 2018
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Farideh Firoozbakht, Jul 31 2004
EXTENSIONS
a(24)-a(27) from Jacques Tramu, Sep 12 2018
a(24) corrected by Michael S. Branicky, Aug 09 2024
STATUS
approved
