Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
N=991;
P=997;
assert(prima(N)==P)
P =
997
|
2 | Pass |
N=9967;
P=9973;
assert(prima(N)==P)
P =
9973
|
3 | Pass |
N=99859;
P=99871;
assert(prima(N)==P)
P =
99871
|
1836 Solvers
Flip the main diagonal of a matrix
506 Solvers
Create an n-by-n null matrix and fill with ones certain positions
269 Solvers
Sum the numbers on the main diagonal
453 Solvers
413 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!