OFFSET
1,1
EXAMPLE
2, 3, 5 and 7 are the first 4 primes. So a(4) = 2! + 3! + 5! + 7! = 2 +6 +120 +5040 = 5168.
MATHEMATICA
Table[ Sum[ Prime[i]!, {i, n}], {n, 12}] (* Robert G. Wilson v, Oct 28 2005 *)
PROG
(PARI) a(n)=sum(k=1, n, prime(k)!) \\ Lambert Klasen (lambert.klasen(AT)gmx.net), Oct 28 2005
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Oct 22 2005
EXTENSIONS
More terms from Lambert Klasen (lambert.klasen(AT)gmx.net) and Robert G. Wilson v, Oct 28 2005
STATUS
approved