OFFSET
1,1
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..450
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.
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
KEYWORD
nonn
AUTHOR
EXTENSIONS
Extended by Ray Chandler, Mar 07 2010
STATUS
approved