login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108270 Numbers n such that n*n! + (smallest prime >= n) is prime. 1
1, 4, 6, 8, 30, 40, 164, 176, 189, 218, 370, 597, 603, 1473, 2176, 2436, 2548, 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!
LINKS
FORMULA
A096986 INTERSECT A018252. - R. J. Mathar, Aug 13 2007
MATHEMATICA
Select[Range[5600], PrimeQ[# (#!) +NextPrime[#-1]]&] (* Harvey P. Dale, Oct 07 2019 *)
PROG
(PARI) for(x=1, 1000, if(isprime(x*x!+nextprime(x)), print1(x, ", ")))
CROSSREFS
Cf. A096986.
Sequence in context: A366557 A089330 A227553 * A019161 A291718 A137026
KEYWORD
nonn,more
AUTHOR
Jorge Coveiro, Jul 24 2006
EXTENSIONS
a(11)-a(20) from Donovan Johnson, Dec 13 2008
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 13:12 EDT 2024. Contains 371969 sequences. (Running on oeis4.)