This comment is hidden because it contains spoiler information about the 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.
Loading collection data...
This comment is hidden because it contains spoiler information about the 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.
This comment is hidden because it contains spoiler information about the solution