This one should work for all of the test cases except that you have some numerical precision issues with the last test case. Please replace it with a numerical comparison that takes into account precision (my code is returning numbers with no decimal point but the test code returns something less pretty).
The Goldbach Conjecture, Part 2
1324 Solvers
Make a run-length companion vector
524 Solvers
110 Solvers
Multiples of a Number in a Given Range
223 Solvers
Volume of a sphere given its surface area
121 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!