Cody

Solution 1942473

Submitted on 19 Sep 2019 at 8:04 by Marcel Kreuzberg
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   Pass
x = 4; tf_correct = true; assert(isequal(isSmith(x),tf_correct ))

ll = 2 2 ql = 4 tf = logical 1

2   Pass
x = 265; tf_correct = true; assert(isequal(isSmith(x),tf_correct ))

ll = 5 53 ql = 13 tf = logical 1

3   Pass
x = 588; tf_correct = true; assert(isequal(isSmith(x),tf_correct ))

ll = 2 2 3 7 7 ql = 21 tf = logical 1

4   Pass
x = 1086; tf_correct = true; assert(isequal(isSmith(x),tf_correct ))

ll = 2 3 181 ql = 15 tf = logical 1

5   Pass
x = 4937775; tf_correct = true; assert(isequal(isSmith(x),tf_correct ))

ll = 3 5 5 65837 ql = 42 tf = logical 1

6   Pass
x = 5; tf_correct = false; assert(isequal(isSmith(x),tf_correct ))

ll = 5

7   Pass
x = 1000; tf_correct = false; assert(isequal(isSmith(x),tf_correct ))

ll = 2 2 2 5 5 5 ql = 21

8   Pass
x = 94.1; tf_correct = false; assert(isequal(isSmith(x),tf_correct ))

9   Pass
x = 202.689; tf_correct = false; assert(isequal(isSmith(x),tf_correct ))

10   Pass
x = pi; tf_correct = false; assert(isequal(isSmith(x),tf_correct ))

11   Pass
x = -4; tf_correct = false; assert(isequal(isSmith(x),tf_correct ))