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!)
A037151 Smallest prime > n!. 17
2, 3, 7, 29, 127, 727, 5051, 40343, 362897, 3628811, 39916801, 479001629, 6227020867, 87178291219, 1307674368043, 20922789888023, 355687428096031, 6402373705728037, 121645100408832089, 2432902008176640029, 51090942171709440031, 1124000727777607680031 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Antonín Čejchan, Michal Křížek, and Lawrence Somer, On Remarkable Properties of Primes Near Factorials and Primorials, Journal of Integer Sequences, Vol. 25 (2022), Article 22.1.4.
FORMULA
a(n) = A151800(A000142(n)) = A000142(n) + A033932(n).
MATHEMATICA
PrimeNext[n_]:=Module[{k}, k=n+1; While[ !PrimeQ[k], k++ ]; k]; Table[PrimeNext[n! ], {n, 40}] (* Vladimir Joseph Stephan Orlovsky, May 30 2010 *)
Table[NextPrime[n!], {n, 25}] (* Harvey P. Dale, Dec 12 2010 *)
PROG
(Python)
from sympy import factorial, nextprime
def a(n): return nextprime(factorial(n))
print([a(n) for n in range(1, 23)]) # Michael S. Branicky, May 22 2022
CROSSREFS
Sequence in context: A084435 A072469 A004062 * A326358 A008840 A268477
KEYWORD
nonn
AUTHOR
EXTENSIONS
Extended by Ray Chandler, Mar 07 2010
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)