Problem 1873. Break it up! Break it up!
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Tim
on 17 Sep 2013
Test case p(300)=9253082936723604 exceeds the maximum integer that can be represented exactly as a double precision number (namely, 2^53=9007199254740992); the fact that some solutions work for this case is just luck.
James
on 18 Sep 2013
Changed to p(299), which is <2^53. Thanks for the heads up.
James
on 18 Sep 2013
Interestingly, p(299) had some issues as well. Changed again to p(199), which seems to be working OK.
ChrisR
on 23 Apr 2022
If I ever want to learn something, I dial up a problem from James.
Solution Comments
Show commentsProblem Recent Solvers48
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5342 Solvers
-
2178 Solvers
-
Find the sum of the elements in the "second" diagonal
1118 Solvers
-
1253 Solvers
-
3257 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!