Cody

Solution 3047965

Submitted on 3 Oct 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test1 (line 5) assert(all(isprime(ladder)))

2   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test2 (line 5) assert(all(isprime(ladder)))

3   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test3 (line 5) assert(all(isprime(ladder)))

4   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test4 (line 5) assert(all(isprime(ladder)))

5   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test5 (line 5) assert(all(isprime(ladder)))

6   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test6 (line 5) assert(all(isprime(ladder)))

7   Fail

g = graph with properties: Edges: [4×1 table] Nodes: [4×0 table]

Error using graph/subsref (line 8) Indexing not supported. Error in isprime (line 16) X = X(:); Error in Test7 (line 5) assert(all(isprime(ladder)))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!