Need a better test suite to prevent cheesy solutions like this one. :-) Some N>10 values in there would help. N>50 would be even better.
28040 Solvers
Project Euler: Problem 10, Sum of Primes
709 Solvers
Find the next Fibonacci number
223 Solvers
172 Solvers
2068 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!