Ad
  • Default 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!

  • Default User Avatar

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

  • Default 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.

  • Default User Avatar

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

  • Default User Avatar

    JavaScript.

  • Default User Avatar

    JavaScript.

  • Default 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.

  • Default 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.

  • Default User Avatar

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