The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A096986 Numbers n such that n*n! + (smallest prime > n) is prime. 2
 1, 2, 3, 4, 5, 6, 7, 8, 23, 29, 30, 31, 40, 164, 176, 189, 218, 370, 597, 603, 1473, 1901, 2176, 2436, 2748, 2732, 4758, 5574 (list; graph; refs; listen; history; text; internal format)
 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 LINKS 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 Cf. A096985, A090704, A049433, A108270 Sequence in context: A269355 A269357 A335900 * A031097 A162234 A024651 Adjacent sequences:  A096983 A096984 A096985 * A096987 A096988 A096989 KEYWORD more,nonn AUTHOR Farideh Firoozbakht, Jul 31 2004 EXTENSIONS a(24)-a(27) from Jacques Tramu, Sep 12 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 24 09:10 EDT 2021. Contains 347630 sequences. (Running on oeis4.)