Cody

# Problem 1925. Smith numbers

Solution 1523723

Submitted on 9 May 2018 by Nicolas
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 ))

somme_1 = 4 somme_2 = 4

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

somme_1 = 13 somme_2 = 13

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

somme_1 = 21 somme_2 = 21

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

somme_1 = 15 somme_2 = 15

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

somme_1 = 42 somme_2 = 42

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

somme_1 = 5 somme_2 = 5

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

somme_1 = 1 somme_2 = 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 ))