Ad
  • Default User Avatar

    You can divide 79677895891146625 by 6 and you get 13279649315191104 with a remainder of 1!
    The fraction 79677895891146625 / 14949283383840498 is not reducible, and slightly different from 13279649315191104 / 2491547230640083
    So your solution is wrong.
    I see now why it is wrong. Your code (like the code of user pr0ace1) seems to use the floating point number division operator / instead of // for integer division since python version 3.
    In python versions 2.x / could mean integer division, but this has been changed incompatibly since version 3.
    You must calculate with integers, not floats.

  • Default User Avatar

    There is bug in python when it doesn't get the lowest common multiple i got
    [13279649315191104, 2491547230640083]
    where the kata expect to
    [79677895891146625, 14949283383840498].
    you can divide the second in 6 and get the first...
    all the tests are passing except of this test