Problem 60991. Search for seesaw primes
Solution Stats
Problem Comments
-
7 Comments
Another fantastic ChrisR special!
Thanks Matthew. And nice job on the code. It's much faster than mine!
Thank you, Tim--fixed.
I also updated the description to include the second seesaw prime.
Oops--I deleted my earlier comment (intending to revise it) before I saw that you responded--never mind.
ChrisR please fix test case 13 : Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to reduce operands to logical scalar values. Error in Test13 (line 4) assert(~tf && isnan(Tmin) && isnan(m) && isnan(n)) , took me the better part of a day to solve this :)
@Nikolaos, it appears that the problem is only with your solutions/attempts.
I have re-tested & re-scored the reference solution and all the submitted correct solutions just now, and they passed the test suite without any error.
True, i thought it was the assertions but it turns out i forgot to set nan for non-prime inputs
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
4 Solvers
More from this Author311
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!