A131122 Even numbers that are not the sum of an evil prime (A027699) and an odious prime (A027697).
2, 4, 6, 8, 20, 26, 32, 38, 68, 86, 92, 98, 128, 164, 188, 278, 302, 512, 2048, 8192, 32768, 131072, 524288, 2097152, 8388608, 33554432, 134217728, 536870912
Offset: 1
Examples
32 is here because 32 = 3+29 = 13+19, 3 and 29 are both odious, and 13 and 19 are both evil.
Programs
-
PARI
isok(n) = {if ((n % 2) == 0, forprime(p=3, n, if ((norml2(binary(p))%2==1) && (isprime(q=n-p)) && (!bittest(norml2(binary(q)), 0)), return (0));); return (1);); return(0);} lista(nn) = forstep(n=2, nn, 2, if (isok(n), print1(n, ", "))); \\ Michel Marcus, Oct 14 2018
Extensions
a(23)-a(28) from Michel Marcus, Oct 14 2018
Comments