A274057 Even numbers n that cannot be written as the difference of two primes, each of which is one of a pair of twin primes, and one of which is < n.
2, 112, 114, 116, 364, 366, 368, 394, 396, 398, 484, 486, 488, 694, 696, 698, 934, 936, 938, 1402, 1404, 1406
Offset: 1
Keywords
Programs
-
PARI
is(n)=my(p=2); forprime(q=3,n+1,if(q-p!=2,p=q;next); if(isprime(n+p) && (isprime(n+p-2) || isprime(n+p+2)),return(0)); if(isprime(n+q) && (isprime(n+q-2) || isprime(n+q+2)) && q
Charles R Greathouse IV, Jun 17 2016
Comments