OFFSET
1,1
COMMENTS
Green & Tao prove that this sequence is infinite.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Ben Green and Terence Tao, Restriction theory of the Selberg sieve, with applications, Journal de théorie des nombres de Bordeaux 18:1 (2006), pp. 147-182.
EXAMPLE
19 is in the sequence since 3 < 11 < 19, 19 - 11 = 11 - 3, all three are prime, and 3+2, 11+2, and 19+2 are each either prime or semiprime.
PROG
(PARI) issemi(n)=bigomega(n)==2
ischen(n)=isprime(n) && (isprime(n+2) || issemi(n+2))
is(n)=if(!ischen(n), return(0)); forprime(p=2, n-4, if((p+n)%4==2 && ischen(p) && ischen((p+n)/2), return(1))); 0
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Jul 12 2016
STATUS
approved