Cody

Solution 97858

Submitted on 12 Jun 2012 by Vincent
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

Test Suite

Test Status Code Input and Output
1   Pass
2   Pass
%% x = 704; tf_correct = false; assert(isequal(kap(x),tf_correct))
z = 1111
3   Pass
%% x = 9 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 9 tf_correct = 1 z = 9
4   Pass
%% x = 45 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 45 tf_correct = 1 z = 45
5   Pass
%% x = 55 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 55 tf_correct = 1 z = 55
6   Pass
%% x = 99 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 99 tf_correct = 1 z = 99
7   Pass
%% x = 297 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 297 tf_correct = 1 z = 297
8   Pass
%% x = 703 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 703 tf_correct = 1 z = 703
9   Pass
%% x = 999 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 999 tf_correct = 1 z = 999
10   Pass
%% x = 2223 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 2223 tf_correct = 1 z = 2223
11   Pass
%% x = 2728 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 2728 tf_correct = 1 z = 2728
12   Pass
%% x = 4950 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 4950 tf_correct = 1 z = 4950
13   Pass
%% x = 5050 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 5050 tf_correct = 1 z = 5050
14   Pass
%% x = 7272 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 7272 tf_correct = 1 z = 7272
15   Pass
%% x = 7777 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 7777 tf_correct = 1 z = 7777
16   Pass
%% x = 9999 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 9999 tf_correct = 1 z = 9999
17   Pass
%% x = 17344 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 17344 tf_correct = 1 z = 17344
18   Pass
%% x = 22222 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 22222 tf_correct = 1 z = 22222
19   Pass
%% x = 77778 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 77778 tf_correct = 1 z = 77778
20   Pass
%% x = 82656 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 82656 tf_correct = 1 z = 82656
21   Pass
%% x = 95121 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 95121 tf_correct = 1 z = 95121
22   Pass
%% x = 99999 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 99999 tf_correct = 1 z = 99999
23   Pass
%% x = 142857 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 142857 tf_correct = 1 z = 142857
24   Pass
%% x = 148149 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 148149 tf_correct = 1 z = 148149
25   Pass
%% x = 181819 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 181819 tf_correct = 1 z = 181819
26   Pass
%% x = 187110 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 187110 tf_correct = 1 z = 187110
27   Pass
%% x = 208495 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 208495 tf_correct = 1 z = 208495
28   Pass
%% x = 318682 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 318682 tf_correct = 1 z = 318682
29   Pass
%% x = 329967 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 329967 tf_correct = 1 z = 329967
30   Pass
%% x = 351352 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 351352 tf_correct = 1 z = 351352
31   Pass
%% x = 356643 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 356643 tf_correct = 1 z = 356643
32   Pass
%% x = 390313 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 390313 tf_correct = 1 z = 390313
33   Pass
%% x = 461539 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 461539 tf_correct = 1 z = 461539
34   Pass
%% x = 466830 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 466830 tf_correct = 1 z = 466830
35   Pass
%% x = 499500 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 499500 tf_correct = 1 z = 499500
36   Pass
%% x = 500500 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 500500 tf_correct = 1 z = 500500
37   Pass
%% x = 533170 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 533170 tf_correct = 1 z = 533170
38   Pass
%% x = 538461 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 538461 tf_correct = 1 z = 538461
39   Pass
%% x = 609687 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 609687 tf_correct = 1 z = 609687
40   Pass
%% x = 643357 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 643357 tf_correct = 1 z = 643357
41   Pass
%% x = 648648 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 648648 tf_correct = 1 z = 648648
42   Pass
%% x = 670033 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 670033 tf_correct = 1 z = 670033
43   Pass
%% x = 681318 tf_correct = true assert(isequal(kap(x),tf_correct))
x = 681318 tf_correct = 1 z = 681318
44   Pass
%% x = 681319 tf_correct = false assert(isequal(kap(x),tf_correct))
x = 681319 tf_correct = 0 z = 1043956
45   Pass
%% x = 681320 tf_correct = false assert(isequal(kap(x),tf_correct))
x = 681320 tf_correct = 0 z = 1406596