Post History
Haskell, 29 bytes import Text.Printf printf"%b" Try it online! Without builtins: Haskell, 37 bytes f n|n<2=[n]|0<1=f(div n 2)++[rem n 2] Try it online!
Answer
#1: Initial revision
# [Haskell], 29 bytes <!-- language-all: lang-hs --> import Text.Printf printf"%b" [Try it online!][TIO-ksyv9qiv] [Haskell]: https://www.haskell.org/ [TIO-ksyv9qiv]: https://tio.run/##y0gszk7Nyfn/PzO3IL@oRCEktaJEL6AoM68kjSvNtgDMUFJNUvqfm5iZp2CrkJ5a4pOZl6pgZ2erkKanUZSamGJlFVwCVJeua@eZV5Kanlqk@d/QEAA "Haskell – Try It Online" --- Without builtins: ## [Haskell], 37 bytes <!-- language-all: lang-hs --> f n|n<2=[n]|0<1=f(div n 2)++[rem n 2] [Try it online!][TIO-ksyuhisz] [Haskell]: https://www.haskell.org/ [TIO-ksyuhisz]: https://tio.run/##FcixDoMgEADQX7kRYiSF0Qh7k3bqaBxIPJAoV4OoC/@O7fbyZrsvuK61OqBCvdIDjeXRS@3YFE4gULxphoTxz7FGGwg0eMyvQAjGaIh2ewPbjvzJSezz9@LCCZbQTl33q0C@NU/K6DHxKuUN "Haskell – Try It Online"