login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A037152
Smallest prime > n!+1.
3
3, 5, 11, 29, 127, 727, 5051, 40343, 362897, 3628811, 39916817, 479001629, 6227020867, 87178291219, 1307674368043, 20922789888023, 355687428096031, 6402373705728037, 121645100408832089, 2432902008176640029
OFFSET
1,1
COMMENTS
Main entry for this sequence is A037153.
LINKS
FORMULA
a(n) = A151800(A000142(n)+1) = A000142(n) + A037153(n).
a(n) = A151800(A038507(n)). - Michel Marcus, Feb 18 2024
MATHEMATICA
NextPrime[Range[20]!+1] (* Harvey P. Dale, Apr 08 2012 *)
PROG
(Maxima) makelist(next_prime(n!+1), n, 1, 20); /* Bruno Berselli, May 20 2011 */
(PARI) for(n=1, 100, print1(nextprime(n!+2), ", ")); /* Joerg Arndt, May 21 2011 */
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Extended by Ray Chandler, Mar 07 2010
STATUS
approved