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.
OP fixed the code and constantly passes, except when such cases appear as OP's solution only checks for initial divisors between 2 to 100, hence an issue :-), but closing this as of now ! ^^
Currently Codewars platform is experiencing issues.
Also, why're you commenting about an issue of a kata on another kata unrelated to the one you're having problems with?
In case of division by zero you should not return anything, instead of that you should raise an exception (any exception in case of JavaScript).