cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A037151 Smallest prime > n!.

Original entry on oeis.org

2, 3, 7, 29, 127, 727, 5051, 40343, 362897, 3628811, 39916801, 479001629, 6227020867, 87178291219, 1307674368043, 20922789888023, 355687428096031, 6402373705728037, 121645100408832089, 2432902008176640029, 51090942171709440031, 1124000727777607680031
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • 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 *)
  • 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

Formula

a(n) = A151800(A000142(n)) = A000142(n) + A033932(n).

Extensions

Extended by Ray Chandler, Mar 07 2010

A187874 Second smallest prime after n!.

Original entry on oeis.org

3, 3, 5, 11, 31, 131, 733, 5059, 40351, 362903, 3628819, 39916817, 479001643, 6227020873, 87178291241, 1307674368149, 20922789888041, 355687428096053, 6402373705728061, 121645100408832109, 2432902008176640037, 51090942171709440037
Offset: 0

Views

Author

Keywords

Examples

			2!=2, second smallest prime=5;
3!=6, second smallest prime=11; ..
		

Crossrefs

Programs

  • Mathematica
    NextPrime[Range[0, 30]!, 2]
Showing 1-2 of 2 results.