Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1000;
y_correct = 31875000;
assert(isequal(euler009(x),y_correct))
ans =
31875000
|
2 | Pass |
%%
x = 2000;
y_correct = 255000000;
assert(isequal(euler009(x),y_correct))
ans =
255000000
|
3 | Pass |
%%
x = 320;
y_correct = 1044480;
assert(isequal(euler009(x),y_correct))
ans =
1044480
|
4 | Pass |
%%
x = 5000;
y_correct = 3984375000
assert(isequal(euler009(x),y_correct))
y_correct =
3.9844e+09
ans =
3.9844e+09
|
707 Solvers
Getting the absolute index from a matrix
211 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
convert matrix to single column
307 Solvers
2239 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!