I also do it bit-by-bit, but try to golf it as much as possible while going. Like for
this monster, I first figured out how to render the ones, then the fives, then both together, then the 0 edge case and finally how to convert the number to base20 and iterate over its digits.