Binary Compliment Reverse Sequence
A challenge by
mousetail
Description
The BCR sequence consists of numbers where, if you take the binary compliment and reverse it, you get back the original number.
10 is one example of a BCR number. When written in binary, 10 becomes 1010
. Reverse 1010
to create 0101
, and the compliment of 0101
is 1010
which is 10
in decimal.
Print all the BCR numbers from 1 to 20,000, each on their own line.
Leaderboard
Author | Score | ||
---|---|---|---|
#1 |
|
Bulmenisaurus | 62 |
#2 |
|
AlephSquirrel | 64 |
#3 |
|
Mukundan314 | 66 |
#4 |
|
hallvabo | 68 |
#5 |
|
anima-libera | 74 |
#6 |
|
mousetail | 79 |
#7 |
|
Natanaelel | 81 |
#8 |
|
bassetmatt | 100 |