Tested with https://github.com/OlegHahm/miniature-dangerzone/tree/master/string_test and seems to work. (Note that 0 is no valid input for `number_of_lowest_bit()`.)