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
-
3001 Solvers
-
8619 Solvers
-
How long is the longest prime diagonal?
384 Solvers
-
Getting the indices from a matrix
607 Solvers
-
Implement a bubble sort technique and output the number of swaps required
247 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!