Heh...I already had written a script to do just this. I just had to change the name of mine to match what you were asking for. Now I get to see how much better I could have done it! :-)
I wish I could award bonus points for going straight to the shell for the answers.
Thank you, Christopher! Sometimes Python comes in handy.
And there it is in a single function. Nice!
404 Solvers
Project Euler: Problem 9, Pythagorean numbers
283 Solvers
2548 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
513 Solvers
Sum the elements in either diagonal of a square matrix
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!