A372689 Positive integers whose binary indices (positions of ones in reversed binary expansion) sum to a prime number.
2, 3, 4, 6, 9, 11, 12, 16, 18, 23, 26, 29, 33, 38, 41, 43, 44, 48, 50, 55, 58, 61, 64, 69, 71, 72, 74, 79, 81, 86, 89, 91, 92, 96, 101, 103, 104, 106, 111, 113, 118, 121, 131, 132, 134, 137, 142, 144, 149, 151, 152, 154, 159, 163, 164, 166, 169, 174, 176, 181
Offset: 1
Examples
The terms together with their binary expansions and binary indices begin: 2: 10 ~ {2} 3: 11 ~ {1,2} 4: 100 ~ {3} 6: 110 ~ {2,3} 9: 1001 ~ {1,4} 11: 1011 ~ {1,2,4} 12: 1100 ~ {3,4} 16: 10000 ~ {5} 18: 10010 ~ {2,5} 23: 10111 ~ {1,2,3,5} 26: 11010 ~ {2,4,5} 29: 11101 ~ {1,3,4,5} 33: 100001 ~ {1,6} 38: 100110 ~ {2,3,6} 41: 101001 ~ {1,4,6} 43: 101011 ~ {1,2,4,6} 44: 101100 ~ {3,4,6} 48: 110000 ~ {5,6} 50: 110010 ~ {2,5,6} 55: 110111 ~ {1,2,3,5,6} 58: 111010 ~ {2,4,5,6} 61: 111101 ~ {1,3,4,5,6}
Crossrefs
Programs
-
Mathematica
Select[Range[100],PrimeQ[Total[First /@ Position[Reverse[IntegerDigits[#,2]],1]]]&]
Comments