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
First non-zero element in each column
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
Integer Sequence - II : New Fibonacci
calculate the length of matrix
Double all elements in the array
More from this Author51
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!