Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
A = 4; B = 10;
y_correct = 5;
assert(isequal(fermat(A,B),y_correct))
|
2 | Pass |
%%
A = 20; B = 10;
y_correct = [5 10 13 15 17];
assert(isequal(fermat(A,B),y_correct))
|
3 | Pass |
%%
A = 20; B = 30;
y_correct = [ 5 10 13 15 17 20 25 26 29 30 34];
assert(isequal(fermat(A,B),y_correct))
|
4 | Pass |
%%
A = 17; B = 33;
y_correct = [5 10 13 15 17 20 25 26 34];
assert(isequal(fermat(A,B),y_correct))
|
Find the sum of all the numbers of the input vector
31948 Solvers
Test if a Number is a Palindrome without using any String Operations
181 Solvers
Matrix indexing with two vectors of indices
485 Solvers
130 Solvers
257 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!