Cody

Problem 45429. Prime Sum

Solution 2294494

Submitted on 19 May 2020 by bainhome
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(prime_sum(3),7))

2   Pass
assert(isequal(prime_sum(6),11))

3   Pass
assert(isequal(prime_sum(500),45))

4   Pass
assert(isequal(prime_sum(2678),64))

5   Pass
assert(isequal(prime_sum(4290),70))

6   Pass
assert(isequal(prime_sum(6500),75))

7   Pass
assert(isequal(prime_sum(116500),117))

Suggested Problems

More from this Author149

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!