@ Binbin Qi
Why not setting the upper time limit?
What is the running time of your solution on cody computer?
@Binbin Qi
Please print the variable "t" to help to profile.
@li haitao, I have fix the code, and you should see my running time.
@Binbin Qi,
Almost same with you. I tried many times, but could not speed up any
more.
Want to see some faster solutions in the future.
Project Euler: Problem 10, Sum of Primes
722 Solvers
95 Solvers
Getting the indices from a vector
3436 Solvers
Matrix which contains the values of an other matrix A at the given locations.
214 Solvers
131 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!