OFFSET
1,1
COMMENTS
Gaps 2 and 4 are conjectured to occur roughly equally often and each occur infinitely often (see link "Polignac's conjecture").
Conjecture: This sequence is infinite.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..862 (all terms up to 10^8)
David A. Corneth, PARI program
PolyMath, Bounded gaps between primes.
Wikipedia, Polignac's conjecture.
EXAMPLE
Up to 89, gaps 2 and 4 occur respectively 8 and 7 times. After 97 (the next prime after 89), there is a gap of 4. So up to 97, gaps 2 and 4 occur the same number of times and the gap after 97 is 2 or 4, so 97 is in the sequence.
PROG
(PARI) \\ See link by name "PARI program" for an extended version with comments.
upto(n) = {my(gapcount=List(), is24 = List()); n=max(n, 3); forprime(i=3, n, g = nextprime(i+1) - i; for(i=#gapcount+1, g\2, listput(gapcount, 0));
gapcount[g\2]++; if(g<6&&#gapcount>1, if(gapcount[1]==gapcount[2], listput(is24, i)))); is24} \\ David A. Corneth, Jun 28 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
David A. Corneth, Jun 10 2016
STATUS
approved