Ad
  • Default User Avatar

    Please change the Haskell signature from Int to Integer
    Even if the numbers (barely) fit in the type, if you calculate a few more you will overflow, which might be part of your algorithm. Then you will have to deal with casting to fix this.