Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Wrong statement in 2023.
Cool ~~
There are various ways to format floats, the fun is trying to guess what they are using.
@kromatic You don't have to sort anything if you're careful. Look at my solution.
Agreed. In fact you can avoid taking square roots by just making sure that x*x <= n for every x you check. The only issue is that you have to sort the list at the end since appending x and then n/x will not result in a sorted list.
It would be better to ignore any number after sqrt(integer) provided the second factor is captured from the division.
As a matter of fact, you don't need to analyse beyond the square root of the given integer. In that case, just add the result of the division as well (if it is not the same, at least). I would propose to test quite large numbers as well, in order to demand more efficient code for large numbers.
Neat, simple and unique idea!