|
| |
|
|
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
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
COMMENTS
| Note that Maple, PARI etc. have different notions of what "next prime" means!
|
|
|
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}]
|
|
|
CROSSREFS
| Cf. A096985, A090704, A049433, A108270
Sequence in context: A037343 A134942 A053408 * A031097 A162234 A024651
Adjacent sequences: A096983 A096984 A096985 * A096987 A096988 A096989
|
|
|
KEYWORD
| more,nonn
|
|
|
AUTHOR
| Farideh Firoozbakht (mymontain(AT)yahoo.com), Jul 31 2004
|
| |
|
|