Just fixed the code from another player, which had an interesting solution.
solution which does not use any nested function ;)
Project Euler: Problem 6, Natural numbers, squares and sums.
1054 Solvers
Sum of diagonal of a square matrix
1340 Solvers
478 Solvers
93 Solvers
Calculate the derivative of a polynomial
173 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!