OFFSET
1,17
EXAMPLE
a(17) = 2; 17 = 13+4 = 11+6, smaller parts are nonprimes larger are prime.
MATHEMATICA
Table[Sum[(PrimePi[n - i] - PrimePi[n - i - 1]) (1 - (PrimePi[i] - PrimePi[i - 1])), {i, Floor[n/2]}], {n, 100}]
PROG
(PARI) a(n) = sum(i=1, n\2, (1-isprime(i))*isprime(n-i)); \\ Michel Marcus, Apr 09 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 08 2018
STATUS
approved