OFFSET
1,1
COMMENTS
Is every term except 4 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 = 37, and a(4) = 13.
MATHEMATICA
Table[NextPrime[n!, 3] - n!, {n, 1, 150}]
NextPrime[#, 3]-#&/@(Range[60]!) (* Harvey P. Dale, Sep 29 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 23 2016
STATUS
approved