wrong answer
Second attempt... still incorrect.
3rd attempt - correct!

(Second was almost correct... except converting ints between bin
and base 10 and back to bin dropped leading zeros.)