OFFSET
1,10
LINKS
FORMULA
a(n) = Sum_{i=1..floor((n-1)/2)} (1 - c(i)) * (1 - c(n-i)), where c = A010051.
EXAMPLE
a(16) = 3; 16 = 15+1 = 12+4 = 10+6, which are distinct nonprimes.
MATHEMATICA
Table[Sum[(1 - PrimePi[n - i] + PrimePi[n - i - 1]) (1 - PrimePi[i] + PrimePi[i - 1]), {i, Floor[(n - 1)/2]}], {n, 100}]
Table[Length[Select[IntegerPartitions[n, {2}], Length[Union[#]]==2&&Boole[PrimeQ[#]]=={0, 0}&]], {n, 80}] (* Harvey P. Dale, Dec 28 2023 *)
PROG
(PARI) A302479(n) = sum(k=1, (n-1)\2, !(isprime(k)+isprime(n-k))); \\ Antti Karttunen, Nov 25 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 08 2018
STATUS
approved