Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 10;
assert(isequal(logic(x),y_correct))
ans =
10
|
2 | Pass |
x = 2;
y_correct = 20;
assert(isequal(logic(x),y_correct))
ans =
20
|
3 | Pass |
x = 4;
y_correct = 52;
assert(isequal(logic(x),y_correct))
ans =
52
|
4 | Pass |
x = 8;
assert(isequal(logic(x),164))
ans =
164
|
17216 Solvers
Project Euler: Problem 10, Sum of Primes
707 Solvers
4329 Solvers
325 Solvers
521 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!