Ad
  • Default User Avatar

    For haskell, the test cases fail if they pick zero at division.
    You could replace choose (0,1004) with choose (1,1004), though I would recommend also checking negative values.