OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The greater of the twin primes < 200 are 5, 7, 13, 19, 31, 43, 61, 73, 103, 109, 139, 151, 181, 193, 199. 22 is in the above sequence because no combination of any two numbers from the set just enumerated can be summed to make 22.
MAPLE
N:= 300: # to get all terms <= N
T:= select(t -> isprime(t) and isprime(t-2), {5, seq(6*i+1, i=1..N/6)}):
A:= {seq(i, i=2..N, 2)} minus {seq(seq(T[i]+T[j], j=1..i), i=1..nops(T))}:
sort(convert(A, list)); # Robert Israel, Mar 14 2018
MATHEMATICA
q = Select[ Range[ 200 ], PrimeQ[ # - 2 ] && PrimeQ[ #2 ] & ]; Complement[ Table[ n, {n, 2, 200, 2} ], Union[ Flatten[ Table[ q[ [ i ] ] + q[ [ j ] ], {i, 1, Length[ q ] }, {j, 1, i} ] ] ] ]
upto=200; Module[{gtp=Transpose[Select[Partition[Prime[Range[PrimePi[ upto]]], 2, 1], #[[2]]-#[[1]]==2&]][[2]]}, Complement[Range[2, upto, 2], Total/@ Tuples[gtp, 2]]] (* Harvey P. Dale, Jan 17 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Sep 29 2001
STATUS
approved