cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A280009 Orders of consecutive clusters of Chen primes.

This page as a plain text file.
%I A280009 #22 Mar 05 2017 05:39:03
%S A280009 13,3,2,2,1,8,1,1,3,3,1,2,4,1,3,1,2,2,1,1,3,1,2,1,8,1,6,1,1,2,3,2,1,1,
%T A280009 2,2,5,3,1,3,1,2,4,4,1,1,1,2,1,1,1,2,1,1,3,1,1,2,5,1,3,3,1,1
%N A280009 Orders of consecutive clusters of Chen primes.
%H A280009 Charles R Greathouse IV, <a href="/A280009/b280009.txt">Table of n, a(n) for n = 1..10000</a>
%t A280009 Length /@ DeleteCases[Split@ Table[Boole@ And[# != 1, PrimeOmega@ # <= 2] &[# + 2] &@ Prime@ n, {n, 300}], k_ /; Total@ k == 0] (* _Michael De Vlieger_, Feb 27 2017 *)
%o A280009 (PARI) do(lim)=my(v=List(),u=v,r,s=1); forprime(p=2,lim\2, forprime(q=2,min(lim\p,p), listput(u,p*q))); u=Set(u); r=3; forprime(p=5,lim, if(p-r==2 || setsearch(u, r+2), s++, if(s, listput(v, s); s=0)); r=p); u=0; Vec(v) \\ _Charles R Greathouse IV_, Feb 27 2017
%Y A280009 Cf. A109611.
%K A280009 nonn
%O A280009 1,1
%A A280009 _Enrique Navarrete_, Feb 21 2017