#[05AB1E](https://github.com/Adriandmen/05AB1E), <s>8</s> 6 bytes

_Thanks to @quartata for letting me know about the square-root function_

    Dgtô¶ý

[__Try it online!__](http://05ab1e.tryitonline.net/#code=RGd0w7TCtsO9&input=TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtdA)