This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Alexandre
on 12 Nov 2013
It would be interesting that the test suite does the assertion on all entries of p1 & p2 in case they return all possible solutions.
assert(all(isprime(p1) & isprime(p2) & (p1+p2==n))
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!