login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A027707
Primes with odd number of 1's in binary expansion such that next prime also has odd number of 1's.
1
7, 11, 31, 37, 59, 61, 73, 103, 107, 127, 131, 151, 167, 173, 179, 181, 191, 199, 211, 223, 227, 229, 233, 239, 241, 409, 419, 421, 431, 433, 439, 487, 491, 557, 563, 577, 601, 607, 613, 631, 647, 653, 659, 701, 709, 719, 727, 757, 761, 823, 827, 911, 919
OFFSET
0,1
MATHEMATICA
c[ n_ ] := OddQ[ Count[ IntegerDigits[ n, 2 ], 1 ]]; Map[ Prime, Select[ Range[ 200 ], c[ Prime[ # ]]&&c[ Prime[ #+1 ]]& ]]
CROSSREFS
Sequence in context: A109907 A121534 A083363 * A046861 A078917 A291349
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved