I like your test suite. Using large X forces a better solution.
Thank you Jonathan. I have discovered this philosophy thanks to James and @bmtran problems.
is there any mathematical algorithm that i dont know about to calculate such big range(10^13)?
i minimized my code as best as i can.still fails for such large number.
1374 Solvers
Project Euler: Problem 7, Nth prime
538 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
325 Solvers
Create a vector whose elements depend on the previous element
399 Solvers
Find nearest prime number less than input number
274 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!