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.
That last return statement was really clever!
Would be more efficient to save Math.sqrt(num) into a var instead of calculating it every loop iteration, I think.
Also - really liked this little bit at the end: return num > 1;
Clever - allows to not have a separate error check for num<=1
I think it would have been better to calculate the square root only once outside the loop :)