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.
if the int is 48 it has 8 as a divisor but sqrt(48) is about 6.9
In fact -- as stated in other comments of high-rated answers -- you can even stop at
sqrt(integer)
.good idea
This isn't a Kata issue, but instead a CW issue.
It's nice and compact, however, I recommend you change the "integer" in the range function to "round(integer/2) + 1". For any n greater than 1, a number i > n/2 won't divide n except for n. You would be using unnecesary resources and spending time in useless results.
Interesting, thank you for the tip.
Instead of having the if and else comparisons, you could just state 'sum == value'. It will result in the same and it'll be cleaner :)
Hey, I'm getting an error when I solve this challenges. I get a message that says 'There was a server issue while sending the request. Please try again'. This is also happening in other challenges. I can't work like this. Any suggestions?