Ad
  • Default User Avatar

    Thanks, glad you found the flaw!

  • Default User Avatar

    1: sys will never be null or empty.
    2: product must be greater than... which means > so your test on "product" is not really the good one.
    3: verify your "areCoprime". I have no time to test your function but the usual way is with the "gcd" (good exercise: gcd of two numbers and then gcd of a list).
    4: if the conditions about product and coprime are not fullfilled there will be no runtime error. You will simply fail the corresponding tests. At last, no test returns something empty.
    Keep me informed!

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution