OFFSET
1,1
COMMENTS
Is every term except the first two 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 = 41, and a(4) = 17.
MATHEMATICA
Table[NextPrime[n!, 4] - n!, {n, 1, 150}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 23 2016
STATUS
approved