OFFSET
1,2
EXAMPLE
33 can be expressed as the sum of three primes in 9 different ways:
33 = 11 + 11 + 11 = 13 + 13 + 7 = 17 + 11 + 5 = 17 + 13 + 3 = 19 + 7 + 7 = 19 + 11 + 3 = 23 + 5 + 5 = 23 + 7 + 3 = 29 + 2 + 2;
there is no pair of twin primes in the addends, so 33 is a term.
PROG
(PARI) for(n = 0, 500, m = 2*n+1; v = 0; forprime(i = 3, m-8, j = (m-i)/2; if(isprime(j-1) && isprime(j+1), v = 1)); if(v == 0, print1(m, ", ")))
(PARI) isok(k) = {if (! (k % 2), return (0)); forprime(p=3, k, if (isprime((k-p)\2-1) && isprime((k-p)\2+1), return(0)); ); return (1); } \\ Michel Marcus, Feb 16 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Feb 13 2020
STATUS
approved