Cody

Solution 1706029

Submitted on 11 Jan 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
assert(isequal(brilliant(4),1))

ans = 2

Assertion failed.

2   Pass
assert(isequal(brilliant(8),0))

ans = 2

3   Fail
assert(isequal(brilliant(40),0))

ans = 2 5

Assertion failed.

4   Pass
assert(isequal(brilliant(343),0))

ans = 7

5   Fail
assert(isequal(brilliant(1536),0))

ans = 2 3

Assertion failed.

6   Pass
assert(isequal(brilliant(1537),1))

ans = 29 53

7   Pass
assert(isequal(brilliant(49165),0))

ans = 5 9833

8   Fail
assert(isequal(brilliant(657721),1))

ans = 811

Assertion failed.

9   Pass
assert(isequal(brilliant(768819),0))

ans = 3 29 8837

10   Pass
assert(isequal(brilliant(13717421),1))

ans = 3607 3803

11   Pass
assert(isequal(brilliant(123456789),0))

ans = 3 3607 3803

12   Pass
assert(isequal(brilliant(669562601),1))

ans = 16091 41611

13   Pass
assert(isequal(brilliant(1234567890),0))

ans = 2 3 5 3607 3803