
31 Mar
2008
31 Mar
'08
1:46 p.m.
"Bruno Carnazzi"
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