Problem 240. Project Euler: Problem 6, Natural numbers, squares and sums.
62.92% Correct | 37.08% Incorrect
Last Solution submitted on May 31, 2023
John D'Errico on 28 Aug 2016
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.
Srishti Saha on 13 Oct 2018
@ 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
Back to basics 21 - Matrix replicating
Determine the number of odd integers in a vector
More from this Author51
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!