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
Again, no. The tests are ok. It is testing what the description says.
Test.assertEquals(solve(1000013,7187761),true);
a
is 1000013 andb
is 7187761 there, why are you flipping them around?prime factors of
b
: 7 and 383 anda
is divisible by both of them, sotrue
is the right expected result.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.
The control function expects true for that input, are you sure you're reading the logs ok? They appear above the test result.
Check your code please. Don't raise issues when what you really need to do is ask a question. 112 users passed all tests.
No they're not.
I tested my code manually, so it is not my solution.
JavaScript.
JavaScript.
Which language?
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.
In which language?
112 tests passed. Your code is wrong!!
Loading more items...