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.
I'd recommend having some larger values of n and m in the test cases to avoid a brute force approach.
this code doesn't account for primary numbers, can be quickly corrected by checking for ns smaller than 0 and returning false as no negative numbers are prime, a.s - given an integer -n for n as any positive integer -n is always divisible by n which is a divisor other than one and itself