login
A076232
a(n) = prime(1+n!) - prime(n!).
0
1, 2, 4, 8, 2, 6, 4, 24, 18, 86, 54, 18, 22, 48, 12, 10, 56, 10, 8, 12, 24
OFFSET
1,2
FORMULA
a(n) = A001223(n!). - Michel Marcus, Aug 24 2019
MATHEMATICA
Table[Prime[n! + 1] - Prime[n!], {n, 10}] (* Wesley Ivan Hurt, Aug 24 2019 *)
PROG
(PARI) a(n) = prime(1+n!) - prime(n!); \\ Michel Marcus, Aug 24 2019
(PARI) a(n) = my(p=prime(n!)); nextprime(p+1) - p; \\ Michel Marcus, Aug 24 2019
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Labos Elemer, Oct 03 2002
EXTENSIONS
a(16)-a(21) from Michel Marcus, Aug 24 2019
STATUS
approved