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.
Please add assertion messages which show the inputs on failure.
Also I don't know Perl so if there are any input which can trip up user solutions using float division by precision loss, please add them as a fixed test (only in full test suite) and make sure they are generated by random tests.
First one shot :p
You should use another way of generating n, because most of the time checking the divisibility by only x (or y) is sufficient : see this Python solution.