How can I view the solution?
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 10;
y_correct = 2640;
assert(isequal(euler006(x),y_correct))
ans =
[]
|
2 | Pass |
%%
x = 20;
y_correct = 41230;
assert(isequal(euler006(x),y_correct))
ans =
[]
|
3 | Pass |
%%
x = 200;
y_correct = 401323300;
assert(isequal(euler006(x),y_correct))
ans =
[]
|
Find the sum of all the numbers of the input vector
31969 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Back to basics 4 - Search Path
322 Solvers
329 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3624 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!