Join Slack
Powered by
If you mean faster as in more performant: * Don't...
# random
k
karelpeeters
10/23/2017, 4:39 PM
If you mean faster as in more performant: * Don't use sequences, they box the numbers * Look up some faster algorithms * Stop checking when
i^2 > n
as was already said, but avoid the
sqrt
.
2
Views
Open in Slack
Previous
Next