If you check the value of euler5 19, you'll get 232792560, which when multiplied by 20 (as part of the call to kgv using fold) would give you 4655851200. This is bigger than the maximum value of an int (2147483647), so it overflows and is treated like 360883904, which causes the ultimate result to be wrong.

By on 6/10/2009 2:48 PM ()

Argh, ok, hell was that a stupid one :(
Thank you

By on 6/10/2009 2:56 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper