OFFSET
1,1
COMMENTS
Preliminary analysis shows a higher %prime than the basic sequence of primes. The %prime is ~0.385 through the first 108K terms (excluding evens and multiples of 5). The PARI code is derived from the A242902 code supplied by Charles R Greathouse IV. This sequence is infinite if the twin primes are infinite.
EXAMPLE
From A242902, (4+12)-1 is composite, (4+12+1) is prime so a(1)=17. Continuing, (6+18)-1 is prime, so a(2)=23, (6+18)+1 is composite. a(3)=41,a(4)=43.
PROG
(PARI)seq{v=[0, 4, 6]; p=11; pptr=0;
forprime(q=13, , if(q-p==2, v=[v[2], v[3], p+1];
if(isprime(v[1]+v[3]-1), pptr++; write("c:\\pari\\blist_sub.csv", pptr, " , ", v[1]+v[3]-1) );
if(isprime(v[1]+v[3]+1), pptr++; write("c:\\pari\\blist_sub.csv", pptr, " , ", v[1]+v[3]+1) )
); p=q ; if(pptr>10000, break) ) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Bill McEachen, Jun 01 2014
STATUS
approved