Ad
  • Custom User Avatar

    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!

  • Custom User Avatar

    Okay, so here you have some screenshots: https://imgur.com/gallery/0EFdJvp

  • Custom User Avatar

    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.

  • Custom User Avatar

    I tested my code manually, so it is not my solution.

  • Custom User Avatar

    JavaScript.

  • Custom User Avatar

    JavaScript.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    The description and the test cases don't match. "a" and "b" are reversed.