I agree. But this code is realy illegible. Other devs can have problems to read this. Which does not change the fact that solution is very original and it doesn't use any imports only pure maths.
Is there any possibility to edit my solution? I click submit and I forgot clean my trash code ;)