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.
Renaming a field in a structure array
748 Solvers
It dseon't mettar waht oedrr the lrettes in a wrod are.
676 Solvers
190 Solvers
Find the sum of the elements in the "second" diagonal
1006 Solvers
How long is the longest prime diagonal?
343 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!