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.
TypeScript translation
The actual tests should be more comprehensive, such as unrelated classes, sibling classes, and inheritance beyond immediate parents.
Also, I'm not sure the current testing is even right:
Animal
is a trait whileDog
is a class. They aren't even the same kind of object. (It's like testing a interface against a class that implements it.)Does anyone know what the Number Theory is related to this problem? Thanks!
This comment is hidden because it contains spoiler information about the solution
There're already many katas about prime numbers available on CW, this one doesn't seem to offer anything new.