Post History
dc, 9 bytes _?dvd*-^p Try it online! Comparisons are expensive in dc, so you have to get a bit creative. I came up with $0^{n-\lfloor\sqrt{n}\rfloor^2}$.
Answer
#1: Initial revision
# [dc], 9 bytes _?dvd*-^p [Try it online!][TIO-kzimuy4r] Comparisons are expensive in dc, so you have to get a bit creative. I came up with $0^{n-\lfloor\sqrt{n}\rfloor^2}$. [dc]: https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html [TIO-kzimuy4r]: https://tio.run/##S0n@/z/ePqUsRUs3ruD/fxNLAA "dc – Try It Online"