[Haskell-cafe] Different answers on different machines

Gregory Collins greg at gregorycollins.net
Sun Jun 2 18:04:24 CEST 2013


On Sat, Jun 1, 2013 at 7:55 PM, <nadine.and.henry at pobox.com> wrote:

> Yesterday I decided to take a look at the most recent Euler problem,
> number 249, and give it a shot.  I have a couple of computers at home,
> a Dell laptop and a desktop.  I compiled this message with ghc -O2
> --make ex429.lhs and ran it on each machine.  On the Dell I get:
>

Odds are good it's integer overflow. Change Int to Integer or Int64 and
retry.

G
-- 
Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130602/b1c3f88f/attachment.htm>


More information about the Haskell-Cafe mailing list