Cody

Solution 1252016

Submitted on 16 Aug 2017
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
assert(isequal(smith(4937775),1))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test1 (line 1) assert(isequal(smith(4937775),1))

2   Fail
assert(isequal(smith(1164),0))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test2 (line 1) assert(isequal(smith(1164),0))

3   Fail
assert(isequal(smith(19683),1))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test3 (line 1) assert(isequal(smith(19683),1))

4   Fail
assert(isequal(smith(11),0)) % Remember - Smith numbers are composite

Output argument "y" (and maybe others) not assigned during call to "smith". Error in Test4 (line 1) assert(isequal(smith(11),0)) % Remember - Smith numbers are composite

5   Fail
assert(isequal(smith(345741),1))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test5 (line 1) assert(isequal(smith(345741),1))

6   Fail
assert(isequal(smith(19876),0))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test6 (line 1) assert(isequal(smith(19876),0))

7   Fail
assert(isequal(smith(314159),0))

Output argument "y" (and maybe others) not assigned during call to "smith". Error in Test7 (line 1) assert(isequal(smith(314159),0))

8   Fail
assert(isequal(smith(612985),1))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test8 (line 1) assert(isequal(smith(612985),1))

9   Fail
assert(isequal(smith(12379887),1))

Error using isequal Not enough input arguments. Error in smith (line 17) isequal(k==s); Error in Test9 (line 1) assert(isequal(smith(12379887),1))

10   Fail
assert(isequal(smith(23456789),0))

Output argument "y" (and maybe others) not assigned during call to "smith". Error in Test10 (line 1) assert(isequal(smith(23456789),0))