Cody

Solution 1213907

Submitted on 16 Jun 2017 by Anupam Agarwal
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
assert(isequal(brilliant(4),1))

a = 2 2 d = 1 r = 1

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

a = 2 2 2 d = 1 r = 1

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

a = 2 2 2 5 d = 1 r = 1

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

a = 7 7 7 d = 1 r = 1

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

a = 2 2 2 2 2 2 2 2 2 3 d = 1 r = 1

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

a = 29 53 d = 1 d = 2 r = 1 r = 2

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

a = 5 9833 d = 1 r = 1 r = 2 r = 3 r = 4

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

a = 811 811 d = 1 d = 2 d = 3 r = 1 r = 2 r = 3

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

a = 3 29 8837 d = 1 r = 1 r = 2

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

a = 3607 3803 d = 1 d = 2 d = 3 d = 4 r = 1 r = 2 r = 3 r = 4

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

a = 3 3 3607 3803 d = 1 r = 1

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

a = 16091 41611 d = 1 d = 2 d = 3 d = 4 d = 5 r = 1 r = 2 r = 3 r = 4 r = 5

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

a = 2 3 3 5 3607 3803 d = 1 r = 1