Cody

Solution 173782

Submitted on 6 Dec 2012 by Aurelien Queffurust
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
%% x = 1001; y_correct = [881 883]; assert(isequal(your_fcn_name(x),y_correct))
E = Columns 1 through 16 2 8 14 16 22 26 28 34 38 44 52 56 58 62 64 68 Columns 17 through 32 82 86 92 94 104 106 112 118 122 128 134 136 146 148 152 154 Columns 33 through 48 166 178 182 184 188 194 196 206 212 218 224 226 232 236 238 248 Columns 49 through 64 262 266 268 272 286 292 302 304 308 314 322 328 334 338 344 352 Columns 65 through 80 356 364 374 376 386 388 394 398 404 412 416 418 422 434 442 446 Columns 81 through 96 454 458 464 476 478 496 502 512 518 524 526 532 542 548 554 556 Columns 97 through 112 562 568 572 574 586 596 598 602 608 614 616 628 632 638 646 656 Columns 113 through 128 664 674 682 688 694 698 706 712 716 724 728 742 752 764 766 776 Columns 129 through 144 778 782 784 794 808 812 814 818 832 836 838 842 862 866 874 884 Columns 145 through 154 892 896 902 908 922 926 932 938 946 952 A = Columns 1 through 16 3 6 12 14 19 21 27 29 31 35 38 43 46 50 55 67 Columns 17 through 29 69 75 84 90 95 99 102 106 126 128 130 134 138 y = 881 y = 881 883
2   Pass
%% x = 1964; y_correct = [1949 1951]; assert(isequal(your_fcn_name(x),y_correct))
E = Columns 1 through 16 1 5 11 13 23 25 31 41 43 53 55 61 79 83 85 89 Columns 17 through 32 95 101 109 115 121 143 145 155 163 173 179 185 193 205 209 215 Columns 33 through 48 221 223 229 241 251 269 271 275 281 283 289 293 295 299 311 313 Columns 49 through 64 319 353 359 365 373 391 401 415 419 421 425 431 439 443 445 451 Columns 65 through 80 463 473 475 479 481 485 491 503 515 523 535 541 545 551 559 563 Columns 81 through 96 571 575 589 593 599 601 605 611 613 619 629 649 655 659 661 685 Columns 97 through 112 689 691 701 713 715 725 733 739 745 751 769 775 779 781 793 803 Columns 113 through 128 815 823 839 853 859 863 865 869 871 881 893 899 905 923 925 941 Column 129 943 A = Columns 1 through 16 3 5 8 10 14 22 33 38 41 44 47 57 62 66 68 85 Columns 17 through 25 88 94 97 100 109 118 120 126 128 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 16 36 40 64 100 130 166 168 184 228 256 268 286 330 340 348 354 Columns 17 through 32 364 366 376 378 414 454 460 468 480 490 498 504 534 558 594 616 Columns 33 through 48 628 634 658 678 684 726 730 744 750 778 796 804 814 834 844 858 Columns 49 through 52 886 898 924 928 A = 6 17 19 y = 123456209 y = 123456209 123456211