OFFSET
0,11
PROG
(PARI) a(n, t=n)=if(n<3, !n, my(s=n%3==0); forprime(p=5, min(t, n), if(isprime(p+2), s+=a(n-p, p)+a(n-p-2, p+2))); s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Jun 27 2012
STATUS
approved