OFFSET
1,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..85
EXAMPLE
For n=4, a(4) = 4! - prime(4) = 24 - 7 = 17.
MATHEMATICA
Table[n! - Prime[n], {n, 1, 150}] (* G. C. Greubel, Sep 01 2015 *)
PROG
(PARI) vector(50, n, n!-prime(n))
(Magma) [Factorial(n)-NthPrime(n): n in [1..30]]; // Vincenzo Librandi, Sep 02 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Altug Alkan, Sep 01 2015
STATUS
approved