This is (more or less) cribbed from the USC contest winner's solution.
Very fast and very compact solution. Nice usage of complex to calculate distance between points and recursion.
4191 Solvers
Matrix with different incremental runs
106 Solvers
Numbers with prime factors 2, 3 and 5.
173 Solvers
126 Solvers
77 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!