Cody

# Problem 64. The Goldbach Conjecture, Part 2

Solution 1858889

Submitted on 26 Jun 2019 by James Browne
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
n = 6; c_correct = 1; assert(isequal(goldbach2(n),c_correct))

c = 1 sumVec = 3 3

2   Pass
n = 10; c_correct = 2; assert(isequal(goldbach2(n),c_correct))

c = 1 sumVec = 3 7 c = 2 sumVec = 5 5

3   Pass
n = 50; c_correct = 4; assert(isequal(goldbach2(n),c_correct))

c = 1 sumVec = 3 47 c = 2 sumVec = 7 43 c = 3 sumVec = 13 37 c = 4 sumVec = 19 31

4   Pass
n = 480; c_correct = 29; assert(isequal(goldbach2(n),c_correct))

c = 1 sumVec = 13 467 c = 2 sumVec = 17 463 c = 3 sumVec = 19 461 c = 4 sumVec = 23 457 c = 5 sumVec = 31 449 c = 6 sumVec = 37 443 c = 7 sumVec = 41 439 c = 8 sumVec = 47 433 c = 9 sumVec = 59 421 c = 10 sumVec = 61 419 c = 11 sumVec = 71 409 c = 12 sumVec = 79 401 c = 13 sumVec = 83 397 c = 14 sumVec = 97 383 c = 15 sumVec = 101 379 c = 16 sumVec = 107 373 c = 17 sumVec = 113 367 c = 18 sumVec = 127 353 c = 19 sumVec = 131 349 c = 20 sumVec = 149 331 c = 21 sumVec = 163 317 c = 22 sumVec = 167 313 c = 23 sumVec = 173 307 c = 24 sumVec = 197 283 c = 25 sumVec = 199 281 c = 26 sumVec = 211 269 c = 27 sumVec = 223 257 c = 28 sumVec = 229 251 c = 29 sumVec = 239 241

### Community Treasure Hunt

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

Start Hunting!