INPUT
Fetch from url
Upload file
Paste from clipboard
Load example file
normal example or STREAM_IMAGE example
OUTPUT
Download lua file
download
Permalink
Filename: .lua (used for random seed)
- GREATEST COMMON DIVISOR -
> READ A AND B > FIND THE GREATEST NUMBER THAT IS A DIVISOR OF BOTH A AND B > WRITE GREATEST COMMON DIVISOR TO OUT.GCD
IN.A
IN.B
OUT.GCD
IN.A
780 642 273 684 155 14 928 987 211 108 10 372 371 264 126 60 345 704 324 410 308 972 984 444 952 176 735 592 258 970 516 45 328 952 326 891 896 841 272
IN.B
690 300 651 171 94 413 464 700 211 990 345 414 901 246 858 786 678 780 324 615 748 648 943 444 343 192 931 16 516 912 408 250 328 512 596 298 96 485 136
OUT.GCD
30 6 21 171 1 7 464 7 211 18 5 6 53 6 6 6 3 4 324 205 44 324 41 444 7 16 49 16 258 2 12 5 328 8 2 1 32 1 136
IN.A
IN.B
OUT.GCD
IN.A
759 986 872 503 384 500 201 65 434 981 735 532 385 725 28 315 335 440 889 952 148 960 286 959 195 882 385 624 318 891 377 55 935 780 901 437 91 448 756
IN.B
598 696 545 503 369 500 962 755 806 327 175 672 490 425 199 504 670 880 315 476 851 768 286 721 312 422 749 696 378 108 377 990 330 195 323 437 791 392 861
OUT.GCD
23 58 109 503 3 500 1 5 62 327 35 28 35 25 1 63 335 440 7 476 37 192 286 7 39 2 7 24 6 27 377 55 55 195 17 437 7 56 21
IN.A
IN.B
OUT.GCD
IN.A
862 306 894 766 126 558 504 386 476 256 180 286 224 576 261 351 14 886 446 92 315 56 390 200 385 626 533 749 354 759 831 489 45 181 324 969 501 343 198
IN.B
948 366 447 280 918 636 289 389 168 356 370 924 364 162 696 997 14 443 446 644 414 686 684 680 855 660 656 188 766 920 277 487 645 181 972 684 501 630 36
OUT.GCD
2 6 447 2 18 6 1 1 28 4 10 22 28 18 87 1 14 443 446 92 9 14 6 40 5 2 41 1 2 23 277 1 15 181 324 57 501 7 18
IN.A
IN.B
OUT.GCD
IN.A
834 379 810 532 994 42 496 280 102 826 288 176 644 87 812 825 286 114 285 378 896 271 468 310 442 840 255 732 270 304 486 447 511 617 703 242 433 280 61
IN.B
556 379 216 525 710 138 880 693 731 288 167 396 851 522 609 840 572 190 798 300 840 271 150 682 78 210 612 306 648 969 234 447 511 77 666 704 866 80 854
OUT.GCD
278 379 54 7 142 6 16 7 17 2 1 44 23 87 203 15 286 38 57 6 56 271 6 62 26 210 51 6 54 19 18 447 511 1 37 22 433 40 61
Test run: [1] [2] [3] [4]