Cody

# Problem 2491. Dudeney Numbers: Numbers which are the cube of their decimal sum

Solution 1795484

Submitted on 23 Apr 2019
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
x = 1; y_correct = 1; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test1 (line 3) assert(isequal(isDudenay(x),y_correct))

2   Fail
x = 10; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test2 (line 3) assert(isequal(isDudenay(x),y_correct))

3   Fail
x = 21; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test3 (line 3) assert(isequal(isDudenay(x),y_correct))

4   Fail
x = 99; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test4 (line 3) assert(isequal(isDudenay(x),y_correct))

5   Fail
x = 512; y_correct = 1; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test5 (line 3) assert(isequal(isDudenay(x),y_correct))

6   Fail
x = 666; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test6 (line 3) assert(isequal(isDudenay(x),y_correct))

7   Fail
x = 1729; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test7 (line 3) assert(isequal(isDudenay(x),y_correct))

8   Fail
x = 4913; y_correct = 1; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test8 (line 3) assert(isequal(isDudenay(x),y_correct))

9   Fail
x = -4913; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test9 (line 3) assert(isequal(isDudenay(x),y_correct))

10   Fail
x = 5832; y_correct = 1; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test10 (line 3) assert(isequal(isDudenay(x),y_correct))

11   Fail
x = 17576; y_correct = 1; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test11 (line 3) assert(isequal(isDudenay(x),y_correct))

12   Fail
x = 19683; y_correct = 1; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test12 (line 3) assert(isequal(isDudenay(x),y_correct))

13   Fail
x = 87539319; y_correct = 0; assert(isequal(isDudenay(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "isDudenay". Error in Test13 (line 3) assert(isequal(isDudenay(x),y_correct))