Problem 240. Project Euler: Problem 6, Natural numbers, squares and sums.
A problem where one must be at least a little careful about floating point arithmetic. It might have been interesting if one of the test cases were x=1e5 or larger. Even more interesting if the execution time were a factor in the "score". These factors might impact how the problem would be best solved.
@ Doug Hall, I have solved all the problems in the series. However, I have not received the badge and the associated scores on completion of the series. Can you please look into this?
Solution CommentsShow comments
Problem Recent Solvers1862
Fix the last element of a cell array
Return fibonacci sequence do not use loop and condition
Find the sides of an isosceles triangle when given its area and height from its base to apex
More from this Author51
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!