Cody

# Problem 45272. Pseudo-vampire number

Solution 2157925

Submitted on 12 Mar 2020
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 = 1; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

2   Pass
x = 99; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

d = 9

3   Fail
x = 126; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = 21 6 2

Assertion failed.

4   Fail
x = 153; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = 51 3

Assertion failed.

5   Fail
x = 688; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = 86 8

Assertion failed.

6   Pass
x = 1010; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

d = 101 10

7   Pass
x = 12760; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

d = 1276 1160 220 116 110 22 20 11 10 2

8   Fail
x = 12768; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = 2128 672 266 228 168 112 76 28 21 16 12 8 7 6 2

Assertion failed.

9   Fail
x = 11439; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = 93 41 31 9 3

Assertion failed.

10   Pass
x = 27040; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

d = 2704 40 20 4 2

11   Pass
x = 52652; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

d = 2

12   Fail
x = 146137; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = 461 317

Assertion failed.

13   Fail
x = 13078260; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

d = Columns 1 through 15 1307826 1006020 167670 111780 100602 80730 67068 63180 37260 21870 21060 18630 16767 12636 11178 Columns 16 through 30 8073 7020 6318 6210 3726 2187 2106 2070 1863 1620 1380 1170 828 810 780 Columns 31 through 45 702 621 276 270 260 230 207 180 162 138 130 117 108 81 78 Columns 46 through 59 60 36 30 27 26 23 20 18 13 12 10 6 3 2

Assertion failed.