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.
Okay, I'm sorry. It seems that I misunderstood how "a" and "b" were interpreted in the test cases. I reversed them in my code and now it works fine. I don't know how to remove the issues, so feel free to do so!
Okay, so here you have some screenshots: https://imgur.com/gallery/0EFdJvp
Well, these are the instructions:
"In this Kata, you will be given two numbers, a and b, and your task is to determine if the first number a is divisible by all the prime factors of the second number b."
But in the code and the test cases, the "a" and the "b" are reversed. It is expected from you to do "prime factor of b/a" instead of "a/prime factor of b", as it is said in the instruction.
I hope this helps.
I tested my code manually, so it is not my solution.
JavaScript.
JavaScript.
It seems that there are more issues regarding the random tests... For instance, it expect "solve(9070, 4535)" to be false but actually it is true.
One test case also is wrong. This is the
a: 7187761
b: 1000013
solve(a, b) should be "False" instead of "True". 373 is a prime divisor of 1000013, but 7187761 isn't divisible by 373.
The description and the test cases don't match. "a" and "b" are reversed.