Cody

# Problem 2690. Armstrong Number

Solution 1608919

Submitted on 14 Aug 2018 by Ben Cappello
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 = 9; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

q = 9

2   Pass
x = 371; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

q = 27 q = 370 q = 371

3   Pass
x = 407; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

q = 64 q = 64 q = 407

4   Pass
x = 1634; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

q = 1 q = 1297 q = 1378 q = 1634

5   Pass
x = 68955; y_correct = 0; assert(isequal(Armstrong(x),y_correct))

q = 7776 q = 40544 q = 99593 q = 102718 q = 105843

6   Pass
x = 548834; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

q = 15625 q = 19721 q = 281865 q = 544009 q = 544738 q = 548834

7   Pass
x = 1741725; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

q = 1 q = 823544 q = 839928 q = 839929 q = 1663472 q = 1663600 q = 1741725