Friday, February 13, 2015

Project Euler Part 2



Here is the solution to the second problem from project euler:



The tricky part of this second problem is that you have to stop adding up before reaching 4 million. Otherwise, you will get infinity as a result. This is due to the large number that is being added up, which exceeds the ECMA international standards for the Number type (2^64 Bit).

0 comments:

Post a Comment