OFFSET
0,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..1000
MATHEMATICA
a[n_] := Module[{k = 1, lf = Sum[i!, {i, 0, n - 1}]}, While[!PrimeQ[lf + k], k++]; k]; Array[a, 100, 0] (* Amiram Eldar, Dec 24 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Aug 17 2006
STATUS
approved