login
A267897
a(n) = prime(n)! - prime(n).
0
0, 3, 115, 5033, 39916789, 6227020787, 355687428095983, 121645100408831981, 25852016738884976639977, 8841761993739701954543615999971, 8222838654177922817725562879999969, 13763753091226345046315979581580902399999963
OFFSET
1,2
FORMULA
a(n) = A039716(n) - A000040(n).
a(n) = A005096(A000040(n)).
MATHEMATICA
Array[Prime[#]! - Prime[#] &, 20]
#!-#&/@Prime[Range[20]] (* Harvey P. Dale, Oct 23 2024 *)
PROG
(Magma) [Factorial(p)-p: p in PrimesUpTo(40)];
(PARI) lista(nn) = forprime(p=2, nn, print1(p! - p, ", ")); \\ Altug Alkan, Jan 23 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 22 2016
STATUS
approved