Cody

# Problem 322. Number of Circles in a Number

Solution 135430

Submitted on 5 Sep 2012 by Robert
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))

``` g = 50237 ```

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

``` g = 56774 ```

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

``` g = 18828 ```

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

``` g = 32420 ```

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

``` g = 71604 ```

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

``` g = 55293 ```

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

``` g = 14229 ```

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

``` g = 38037 ```

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

``` g = 39657 ```

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

``` g = 57675 ```

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

``` g = 1941 ```

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

``` g = 57759 ```

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

``` g = 93220 ```

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

``` g = 10688 ```

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

``` g = 73215 ```

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

``` g = 97053 ```

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

``` g = 60889 ```

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

``` g = 71967 ```

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

``` g = 30276 ```

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

``` g = 45903 ```

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

``` g = 4803 ```

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

``` g = 38536 ```

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

``` g = 36172 ```

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

``` g = 28759 ```

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

``` g = 81672 ```

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

``` g = 45053 ```

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

``` g = 80664 ```

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

``` g = 79018 ```

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

``` g = 28296 ```

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

``` g = 6831 ```

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

``` g = 5494 ```

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

``` g = 63753 ```

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

``` g = 42429 ```

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

``` g = 90554 ```

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

``` g = 41733 ```

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

``` g = 15406 ```

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

``` g = 54000 ```

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

``` g = 93710 ```

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

``` g = 66096 ```

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

``` g = 39466 ```

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

``` g = 25900 ```

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

``` g = 84792 ```

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

``` g = 94506 ```

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

``` g = 37700 ```

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

``` g = 6729 ```

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

``` g = 18159 ```

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

``` g = 57575 ```

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

``` g = 18589 ```

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

``` g = 29145 ```

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

``` g = 46167 ```