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 Solvers1861
How to find the position of an element in a vector without using the find function
Create a cell array out of a struct
Project Euler: Problem 8, Find largest product in a large string of numbers
Back to basics 9 - Indexed References
Who has power to do everything in this world?
More from this Author51
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!