Cody

# Problem 322. Number of Circles in a Number

Solution 101931

Submitted on 22 Jun 2012 by Christopher
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(ncircles(50237),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

2   Pass
%% assert(isequal(ncircles(56774),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

3   Pass
%% assert(isequal(ncircles(18828),6))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

4   Pass
%% assert(isequal(ncircles(32420),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

5   Pass
%% assert(isequal(ncircles(71604),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

6   Pass
%% assert(isequal(ncircles(55293),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

7   Pass
%% assert(isequal(ncircles(14229),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

8   Pass
%% assert(isequal(ncircles(38037),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

9   Pass
%% assert(isequal(ncircles(39657),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

10   Pass
%% assert(isequal(ncircles(57675),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

11   Pass
%% assert(isequal(ncircles(1941),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

12   Pass
%% assert(isequal(ncircles(57759),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

13   Pass
%% assert(isequal(ncircles(93220),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

14   Pass
%% assert(isequal(ncircles(10688),6))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

15   Pass
%% assert(isequal(ncircles(73215),0))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

16   Pass
%% assert(isequal(ncircles(97053),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

17   Pass
%% assert(isequal(ncircles(60889),7))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

18   Pass
%% assert(isequal(ncircles(71967),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

19   Pass
%% assert(isequal(ncircles(30276),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

20   Pass
%% assert(isequal(ncircles(45903),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

21   Pass
%% assert(isequal(ncircles(4803),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

22   Pass
%% assert(isequal(ncircles(38536),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

23   Pass
%% assert(isequal(ncircles(36172),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

24   Pass
%% assert(isequal(ncircles(28759),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

25   Pass
%% assert(isequal(ncircles(81672),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

26   Pass
%% assert(isequal(ncircles(45053),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

27   Pass
%% assert(isequal(ncircles(80664),5))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

28   Pass
%% assert(isequal(ncircles(79018),4))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

29   Pass
%% assert(isequal(ncircles(28296),4))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

30   Pass
%% assert(isequal(ncircles(6831),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

31   Pass
%% assert(isequal(ncircles(5494),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

32   Pass
%% assert(isequal(ncircles(63753),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

33   Pass
%% assert(isequal(ncircles(42429),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

34   Pass
%% assert(isequal(ncircles(90554),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

35   Pass
%% assert(isequal(ncircles(41733),0))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

36   Pass
%% assert(isequal(ncircles(15406),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

37   Pass
%% assert(isequal(ncircles(54000),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

38   Pass
%% assert(isequal(ncircles(93710),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

39   Pass
%% assert(isequal(ncircles(66096),5))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

40   Pass
%% assert(isequal(ncircles(39466),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

41   Pass
%% assert(isequal(ncircles(25900),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

42   Pass
%% assert(isequal(ncircles(84792),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

43   Pass
%% assert(isequal(ncircles(94506),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

44   Pass
%% assert(isequal(ncircles(37700),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

45   Pass
%% assert(isequal(ncircles(6729),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

46   Pass
%% assert(isequal(ncircles(18159),3))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

47   Pass
%% assert(isequal(ncircles(57575),0))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

48   Pass
%% assert(isequal(ncircles(18589),5))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

49   Pass
%% assert(isequal(ncircles(29145),1))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```

50   Pass
%% assert(isequal(ncircles(46167),2))

``` lookup = 1 0 0 0 0 0 1 0 2 1 ```