A177801
Record lengths of chains of consecutive evil primes, starting with A177748(n).
Original entry on oeis.org
2, 3, 5, 7, 8, 12, 16, 20, 23, 25, 26, 30, 31, 32, 34, 38, 39, 40, 41, 42, 44
Offset: 1
-
{l=0;r=0; forprime( p=1, default(primelimit), if( bittest( norml2(binary(p)),0), l>r & print1(r=l ", "); l & l=0, l++))} \\ M. F. Hasler, Dec 12 2010
A177798
First primes of record chains of consecutive primes such that all of them are odious (A027697).
Original entry on oeis.org
2, 7, 167, 199, 6271, 12227, 168713, 579907, 5937157, 6829751, 8059943, 66858173, 167857663, 661416709, 2322857987, 12012698381, 14641587607, 26304771553, 49671709081, 1244930533403, 1922085626009
Offset: 1
-
back(p,k)=while(k--,p=precprime(p-1));precprime(p-1)
r=s=0;forprime(p=2,1e9,if(hammingweight(p)%2,s++,if(s>r,r=s;print1(back(p,r)", "));s=0)) \\ Charles R Greathouse IV, Mar 29 2013
A177800
The maximal length of the chain of consecutive primes starting with A177798(n) such that all of them are odious.
Original entry on oeis.org
1, 3, 6, 9, 11, 15, 17, 18, 22, 23, 25, 26, 28, 29, 33, 34, 35, 36, 38, 39, 42
Offset: 1
Showing 1-3 of 3 results.
Comments