OFFSET
0,3
FORMULA
a(0) = 1; a(n) = Sum_{p<=n, p prime} p * a(n-p).
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec(1/(1-sum(k=1, N, isprime(k)*k*x^k)))
(PARI) a(n) = if(n==0, 1, sum(k=1, n, isprime(k)*k*a(n-k)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Apr 28 2022
STATUS
approved