Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 6;
c_correct = 1;
assert(isequal(goldbach2(n),c_correct))
ans =
1
|
2 | Pass |
%%
n = 10;
c_correct = 2;
assert(isequal(goldbach2(n),c_correct))
ans =
2
|
3 | Pass |
%%
n = 50;
c_correct = 4;
assert(isequal(goldbach2(n),c_correct))
ans =
4
|
4 | Pass |
%%
n = 480;
c_correct = 29;
assert(isequal(goldbach2(n),c_correct))
ans =
29
|
1424 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
343 Solvers
445 Solvers
Flip the vector from right to left
2666 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!