Cody

Solution 173779

Submitted on 6 Dec 2012
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
%% x = 1001; y_correct = [881 883]; assert(isequal(your_fcn_name(x),y_correct))
Error: All entries of X must be nonnegative integers.
2   Pass
%% x = 1964; y_correct = [1949 1951]; assert(isequal(your_fcn_name(x),y_correct))
E = Columns 1 through 8 4 16 24 28 36 40 46 58 Columns 9 through 16 60 78 84 94 100 106 108 114 Columns 17 through 24 124 130 136 138 144 150 154 156 Columns 25 through 32 168 178 180 184 190 196 198 210 Columns 33 through 40 214 220 228 238 246 256 264 270 Columns 41 through 48 276 280 288 294 298 306 310 324 Columns 49 through 56 334 346 348 358 360 364 366 376 Columns 57 through 64 390 394 396 400 414 418 420 424 Columns 65 through 72 444 448 456 466 474 478 484 490 Columns 73 through 80 504 508 514 520 528 534 546 550 Columns 81 through 88 556 558 568 570 576 586 588 598 Columns 89 through 96 600 606 624 628 630 634 640 646 Columns 97 through 104 654 660 666 688 690 700 708 718 Columns 105 through 112 724 730 738 750 754 760 766 768 Columns 113 through 120 774 786 796 814 816 820 826 828 Columns 121 through 128 834 838 840 844 856 858 864 898 Columns 129 through 136 904 910 918 936 946 960 964 966 Columns 137 through 144 970 976 984 988 990 996 1008 1018 Columns 145 through 152 1020 1024 1026 1030 1036 1048 1060 1068 Columns 153 through 160 1080 1086 1090 1096 1104 1108 1116 1120 Columns 161 through 168 1134 1138 1144 1146 1150 1156 1158 1164 Columns 169 through 176 1174 1194 1200 1204 1206 1230 1234 1236 Columns 177 through 184 1246 1258 1260 1270 1278 1284 1290 1296 Columns 185 through 192 1314 1320 1324 1326 1338 1348 1360 1368 Columns 193 through 200 1384 1398 1404 1408 1410 1414 1416 1426 Columns 201 through 207 1438 1444 1450 1468 1470 1486 1488 A = Columns 1 through 16 8 14 19 23 26 30 50 52 54 58 62 81 83 86 88 92 Columns 17 through 32 100 111 116 119 122 125 135 140 144 146 163 166 172 175 178 187 Columns 33 through 36 196 198 204 206 y = 1949 y = 1949 1951
3   Pass
%% x = 123456789; y_correct = [123456209 123456211]; assert(isequal(your_fcn_name(x),y_correct))
E = Columns 1 through 8 75 101 105 113 125 131 141 153 Columns 9 through 16 159 171 173 243 245 285 299 305 Columns 17 through 24 333 339 381 389 393 399 413 425 Columns 25 through 32 441 449 459 465 483 491 515 521 Columns 33 through 40 543 581 585 609 645 675 711 713 Columns 41 through 48 729 773 801 813 831 875 885 893 Columns 49 through 56 899 909 911 921 923 959 999 1005 Columns 57 through 64 1013 1025 1035 1043 1049 1079 1103 1139 Columns 65 through 72 1161 1173 1179 1203 1223 1229 1271 1275 Columns 73 through 80 1289 1295 1323 1341 1349 1359 1379 1389 Columns 81 through 85 1403 1431 1443 1469 1473 A = 10 12 39 50 52 y = 123456209 y = 123456209 123456211