Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a=100;
b=120;
y_correct = [101 103 107 109 113];
assert(isequal(allprimes(a,b),y_correct))
|
2 | Pass |
a=140;
b=180;
y_correct = [149 151 157 163 167 173 179];
assert(isequal(allprimes(a,b),y_correct))
|
3 | Pass |
a=14;
b=20;
y_correct = [17 19];
assert(isequal(allprimes(a,b),y_correct))
|
1763 Solvers
Flip the main diagonal of a matrix
506 Solvers
Number of 1s in a binary string
2818 Solvers
Create sequnce 1 4 9 16 25.........
190 Solvers
198 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!