OFFSET
1,1
COMMENTS
Is every term except 4 and 6 a prime?
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..300
EXAMPLE
For n = 4, we have n! = 24, so that p = 17, and a(4) = 7.
MATHEMATICA
Table[n! - NextPrime[n!, -3], {n, 1, 150}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 23 2016
EXTENSIONS
Name corrected by Pavel Irzhavski, Jul 25 2016
STATUS
approved