J-G, thanks for the problem. Could you add some more information about expected inputs and outputs? An example and some more tests would be helpful too. If your test suite has exactly one test, it's trivial to write a correct answer.
Project Euler: Problem 6, Natural numbers, squares and sums.
1034 Solvers
209 Solvers
Relative ratio of "1" in binary number
412 Solvers
219 Solvers
323 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!