Cody

# Problem 45388. Gapful numbers

Solution 2197933

Submitted on 7 Apr 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   Fail
assert(isequal(gapful_4(54),0))

Unrecognized function or variable 'y'. Error in gapful_4 (line 12) y Error in Test1 (line 1) assert(isequal(gapful_4(54),0))

2   Fail
assert(isequal(gapful_4(451),51))

Unrecognized function or variable 'y'. Error in gapful_4 (line 12) y Error in Test2 (line 1) assert(isequal(gapful_4(451),51))

3   Fail
assert(isequal(gapful_4(4451),525))

Unrecognized function or variable 'y'. Error in gapful_4 (line 12) y Error in Test3 (line 1) assert(isequal(gapful_4(4451),525))

4   Fail
assert(isequal(gapful_4(10000),765))

Unrecognized function or variable 'y'. Error in gapful_4 (line 12) y Error in Test4 (line 1) assert(isequal(gapful_4(10000),765))

5   Fail
assert(isequal(gapful_4(100000),7491))

Unrecognized function or variable 'y'. Error in gapful_4 (line 12) y Error in Test5 (line 1) assert(isequal(gapful_4(100000),7491))

6   Fail
assert(isequal(gapful_4(99999),7490))

Unrecognized function or variable 'y'. Error in gapful_4 (line 12) y Error in Test6 (line 1) assert(isequal(gapful_4(99999),7490))

7   Fail
assert(isequal(gapful_4(1000000),74665))

y = 9383

Assertion failed.

8   Pass
%assert(isequal(gapful_4(1200000),117829))

9   Pass
%assert(isequal(gapful_4(10000000),746,286))