"Bruno Carnazzi" <[EMAIL PROTECTED]> writes:

> The program ends for values up to 400000 :

Wild guess here - I know nothing about the problem, and haven't
examined your program in detail - but could it be that you default to
Int, and that it wraps silently at some power of two, thereby making
your algorithm wrap around?  Try to stick some 'Integer' type
annotations in there, and see if it helps.

-k

(cetera censeo...)
-- 
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to