Numloop

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

For the numbers 1 - 999
for every number n
if n is odd, n = 6n + 2
if n is even, n = n / 4 (increment it until
n is divisable by 4)
Loop until n reaches 1 or not.

Print the amount of required steps to reach 1 if
possible else print Infinity as well as the number.

steps, number

-- mroman

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

*NOTHING*

Sample output:

0, 1
1, 2
6, 3
1, 4
4, 5
2, 6
Infinity, 7
2, 8
4, 9
7, 10
Infinity, 11
7, 12
7, 13
2, 14
14, 15
2, 16
Infinity, 17
5, 18
Infinity, 19
5, 20
5, 21
3, 22
12, 23
3, 24
10, 25
Infinity, 26
7, 27
Infinity, 28
Infinity, 29
3, 30
26, 31
3, 32
10, 33
5, 34
10, 35
5, 36
5, 37
8, 38
12, 39
8, 40
5, 41
Infinity, 42
15, 43
Infinity, 44
Infinity, 45
8, 46
24, 47
8, 48
Infinity, 49
8, 50
Infinity, 51
8, 52
8, 53
3, 54
31, 55
3, 56
6, 57
15, 58
10, 59
15, 60
15, 61
3, 62
22, 63
3, 64
13, 65
Infinity, 66
13, 67
Infinity, 68
Infinity, 69
6, 70
22, 71
6, 72
Infinity, 73
Infinity, 74
20, 75
Infinity, 76
Infinity, 77
6, 78
20, 79
6, 80
29, 81
6, 82
29, 83
6, 84
6, 85
4, 86
Infinity, 87
4, 88
8, 89
13, 90
13, 91
13, 92
13, 93
4, 94
20, 95
4, 96
8, 97
11, 98
8, 99
11, 100
11, 101
Infinity, 102
11, 103
Infinity, 104
11, 105
8, 106
20, 107
8, 108
8, 109
Infinity, 110
15, 111
Infinity, 112
18, 113
Infinity, 114
18, 115
Infinity, 116
Infinity, 117
4, 118
18, 119
4, 120
11, 121
27, 122
11, 123
27, 124
27, 125
4, 126
Infinity, 127
4, 128
Infinity, 129
11, 130
Infinity, 131
11, 132
11, 133
6, 134
25, 135
6, 136
11, 137
11, 138
25, 139
11, 140
11, 141
6, 142
18, 143
6, 144
34, 145
6, 146
34, 147
6, 148
6, 149
9, 150
11, 151
9, 152
18, 153
13, 154
9, 155
13, 156
13, 157
9, 158
Infinity, 159
9, 160
18, 161
6, 162
18, 163
6, 164
6, 165
Infinity, 166
13, 167
Infinity, 168
6, 169
16, 170
13, 171
16, 172
16, 173
Infinity, 174
32, 175
Infinity, 176
16, 177
Infinity, 178
16, 179
Infinity, 180
Infinity, 181
9, 182
16, 183
9, 184
9, 185
25, 186
13, 187
25, 188
25, 189
9, 190
Infinity, 191
9, 192
Infinity, 193
Infinity, 194
Infinity, 195
Infinity, 196
Infinity, 197
9, 198
13, 199
9, 200
Infinity, 201
Infinity, 202
23, 203
Infinity, 204
Infinity, 205
9, 206
39, 207
9, 208
23, 209
9, 210
23, 211
9, 212
9, 213
4, 214
16, 215
4, 216
9, 217
32, 218
32, 219
32, 220
32, 221
4, 222
23, 223
4, 224
9, 225
7, 226
9, 227
7, 228
7, 229
16, 230
Infinity, 231
16, 232
7, 233
11, 234
16, 235
11, 236
11, 237
16, 238
Infinity, 239
16, 240
16, 241
16, 242
16, 243
16, 244
16, 245
4, 246
30, 247
4, 248
7, 249
23, 250
11, 251
23, 252
23, 253
4, 254
30, 255
4, 256
11, 257
14, 258
11, 259
14, 260
14, 261
Infinity, 262
30, 263
Infinity, 264
14, 265
14, 266
16, 267
14, 268
14, 269
Infinity, 270
14, 271
Infinity, 272
14, 273
Infinity, 274
14, 275
Infinity, 276
Infinity, 277
7, 278
18, 279
7, 280
11, 281
23, 282
14, 283
23, 284
23, 285
7, 286
Infinity, 287
7, 288
11, 289
Infinity, 290
11, 291
Infinity, 292
Infinity, 293
Infinity, 294
30, 295
Infinity, 296
Infinity, 297
21, 298
11, 299
21, 300
21, 301
Infinity, 302
46, 303
Infinity, 304
21, 305
Infinity, 306
21, 307
Infinity, 308
Infinity, 309
7, 310
37, 311
7, 312
7, 313
21, 314
Infinity, 315
21, 316
21, 317
7, 318
34, 319
7, 320
14, 321
30, 322
14, 323
30, 324
30, 325
7, 326
Infinity, 327
7, 328
30, 329
30, 330
18, 331
30, 332
30, 333
7, 334
21, 335
7, 336
Infinity, 337
7, 338
Infinity, 339
7, 340
7, 341
5, 342
Infinity, 343
5, 344
14, 345
Infinity, 346
Infinity, 347
Infinity, 348
Infinity, 349
5, 350
25, 351
5, 352
14, 353
9, 354
14, 355
9, 356
9, 357
14, 358
Infinity, 359
14, 360
9, 361
14, 362
Infinity, 363
14, 364
14, 365
14, 366
Infinity, 367
14, 368
28, 369
14, 370
28, 371
14, 372
14, 373
5, 374
28, 375
5, 376
9, 377
21, 378
9, 379
21, 380
21, 381
5, 382
28, 383
5, 384
37, 385
9, 386
37, 387
9, 388
9, 389
12, 390
25, 391
12, 392
9, 393
9, 394
28, 395
9, 396
9, 397
12, 398
Infinity, 399
12, 400
14, 401
12, 402
14, 403
12, 404
12, 405
Infinity, 406
12, 407
Infinity, 408
16, 409
12, 410
21, 411
12, 412
12, 413
Infinity, 414
21, 415
Infinity, 416
16, 417
12, 418
16, 419
12, 420
12, 421
9, 422
21, 423
9, 424
12, 425
21, 426
21, 427
21, 428
21, 429
9, 430
Infinity, 431
9, 432
21, 433
9, 434
21, 435
9, 436
9, 437
Infinity, 438
35, 439
Infinity, 440
Infinity, 441
16, 442
28, 443
16, 444
16, 445
Infinity, 446
48, 447
Infinity, 448
9, 449
19, 450
9, 451
19, 452
19, 453
Infinity, 454
44, 455
Infinity, 456
19, 457
19, 458
16, 459
19, 460
19, 461
Infinity, 462
32, 463
Infinity, 464
35, 465
Infinity, 466
35, 467
Infinity, 468
Infinity, 469
5, 470
19, 471
5, 472
Infinity, 473
19, 474
19, 475
19, 476
19, 477
5, 478
32, 479
5, 480
Infinity, 481
12, 482
Infinity, 483
12, 484
12, 485
28, 486
19, 487
28, 488
12, 489
12, 490
Infinity, 491
12, 492
12, 493
28, 494
23, 495
28, 496
16, 497
28, 498
16, 499
28, 500
28, 501
5, 502
19, 503
5, 504
12, 505
Infinity, 506
12, 507
Infinity, 508
Infinity, 509
5, 510
Infinity, 511
5, 512
Infinity, 513
Infinity, 514
Infinity, 515
Infinity, 516
Infinity, 517
12, 518
42, 519
12, 520
Infinity, 521
Infinity, 522
35, 523
Infinity, 524
Infinity, 525
12, 526
23, 527
12, 528
16, 529
12, 530
16, 531
12, 532
12, 533
7, 534
26, 535
7, 536
Infinity, 537
26, 538
Infinity, 539
26, 540
26, 541
7, 542
23, 543
7, 544
Infinity, 545
12, 546
Infinity, 547
12, 548
12, 549
12, 550
Infinity, 551
12, 552
12, 553
26, 554
12, 555
26, 556
26, 557
12, 558
26, 559
12, 560
26, 561
12, 562
26, 563
12, 564
12, 565
7, 566
39, 567
7, 568
7, 569
19, 570
35, 571
19, 572
19, 573
7, 574
26, 575
7, 576
12, 577
35, 578
12, 579
35, 580
35, 581
7, 582
19, 583
7, 584
35, 585
35, 586
23, 587
35, 588
35, 589
7, 590
23, 591
7, 592
26, 593
7, 594
26, 595
7, 596
7, 597
10, 598
Infinity, 599
10, 600
10, 601
12, 602
12, 603
12, 604
12, 605
10, 606
23, 607
10, 608
10, 609
19, 610
10, 611
19, 612
19, 613
14, 614
19, 615
14, 616
19, 617
10, 618
Infinity, 619
10, 620
10, 621
14, 622
19, 623
14, 624
19, 625
14, 626
19, 627
14, 628
14, 629
10, 630
19, 631
10, 632
19, 633
Infinity, 634
19, 635
Infinity, 636
Infinity, 637
10, 638
30, 639
10, 640
19, 641
19, 642
19, 643
19, 644
19, 645
7, 646
Infinity, 647
7, 648
19, 649
19, 650
Infinity, 651
19, 652
19, 653
7, 654
19, 655
7, 656
33, 657
7, 658
33, 659
7, 660
7, 661
Infinity, 662
19, 663
Infinity, 664
26, 665
14, 666
10, 667
14, 668
14, 669
Infinity, 670
46, 671
Infinity, 672
26, 673
7, 674
26, 675
7, 676
7, 677
17, 678
14, 679
17, 680
7, 681
14, 682
42, 683
14, 684
14, 685
17, 686
26, 687
17, 688
14, 689
17, 690
14, 691
17, 692
17, 693
Infinity, 694
30, 695
Infinity, 696
Infinity, 697
33, 698
14, 699
33, 700
33, 701
Infinity, 702
42, 703
Infinity, 704
17, 705
17, 706
17, 707
17, 708
17, 709
Infinity, 710
17, 711
Infinity, 712
17, 713
17, 714
19, 715
17, 716
17, 717
Infinity, 718
30, 719
Infinity, 720
17, 721
Infinity, 722
17, 723
Infinity, 724
Infinity, 725
10, 726
21, 727
10, 728
Infinity, 729
17, 730
17, 731
17, 732
17, 733
10, 734
Infinity, 735
10, 736
Infinity, 737
10, 738
Infinity, 739
10, 740
10, 741
26, 742
21, 743
26, 744
10, 745
14, 746
17, 747
14, 748
14, 749
26, 750
26, 751
26, 752
17, 753
26, 754
17, 755
26, 756
26, 757
10, 758
26, 759
10, 760
10, 761
Infinity, 762
14, 763
Infinity, 764
Infinity, 765
10, 766
Infinity, 767
10, 768
14, 769
Infinity, 770
14, 771
Infinity, 772
Infinity, 773
Infinity, 774
26, 775
Infinity, 776
Infinity, 777
Infinity, 778
40, 779
Infinity, 780
Infinity, 781
Infinity, 782
14, 783
Infinity, 784
33, 785
Infinity, 786
33, 787
Infinity, 788
Infinity, 789
10, 790
21, 791
10, 792
24, 793
14, 794
Infinity, 795
14, 796
14, 797
10, 798
Infinity, 799
10, 800
24, 801
Infinity, 802
24, 803
Infinity, 804
Infinity, 805
Infinity, 806
21, 807
Infinity, 808
Infinity, 809
24, 810
24, 811
24, 812
24, 813
Infinity, 814
21, 815
Infinity, 816
24, 817
Infinity, 818
24, 819
Infinity, 820
Infinity, 821
10, 822
37, 823
10, 824
10, 825
40, 826
Infinity, 827
40, 828
40, 829
10, 830
26, 831
10, 832
10, 833
24, 834
10, 835
24, 836
24, 837
10, 838
24, 839
10, 840
24, 841
24, 842
24, 843
24, 844
24, 845
10, 846
26, 847
10, 848
37, 849
10, 850
37, 851
10, 852
10, 853
5, 854
Infinity, 855
5, 856
33, 857
17, 858
17, 859
17, 860
17, 861
5, 862
24, 863
5, 864
33, 865
10, 866
33, 867
10, 868
10, 869
33, 870
17, 871
33, 872
10, 873
33, 874
17, 875
33, 876
33, 877
33, 878
28, 879
33, 880
21, 881
33, 882
21, 883
33, 884
33, 885
5, 886
21, 887
5, 888
10, 889
24, 890
10, 891
24, 892
24, 893
5, 894
Infinity, 895
5, 896
Infinity, 897
10, 898
Infinity, 899
10, 900
10, 901
8, 902
21, 903
8, 904
10, 905
10, 906
Infinity, 907
10, 908
10, 909
8, 910
21, 911
8, 912
Infinity, 913
8, 914
Infinity, 915
8, 916
8, 917
17, 918
Infinity, 919
17, 920
Infinity, 921
Infinity, 922
17, 923
Infinity, 924
Infinity, 925
17, 926
Infinity, 927
17, 928
Infinity, 929
8, 930
Infinity, 931
8, 932
8, 933
12, 934
17, 935
12, 936
8, 937
17, 938
21, 939
17, 940
17, 941
12, 942
40, 943
12, 944
17, 945
12, 946
17, 947
12, 948
12, 949
17, 950
31, 951
17, 952
17, 953
Infinity, 954
31, 955
Infinity, 956
Infinity, 957
17, 958
28, 959
17, 960
12, 961
17, 962
12, 963
17, 964
17, 965
17, 966
31, 967
17, 968
17, 969
17, 970
Infinity, 971
17, 972
17, 973
17, 974
44, 975
17, 976
Infinity, 977
17, 978
Infinity, 979
17, 980
17, 981
5, 982
17, 983
5, 984
17, 985
31, 986
31, 987
31, 988
31, 989
5, 990
31, 991
5, 992
17, 993
8, 994
17, 995
8, 996
8, 997
24, 998
31, 999

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock811.42832012/08/13 06:18:580B / 36B / 44B
2leonid840.04072012/08/15 05:43:510B / 40B / 42B

Perl _

RankUserSizeTimeDateStatistics
1tails840.02482012/08/12 20:36:090B / 33B / 49B
2teebee840.02972012/08/15 06:02:250B / 36B / 45B
3Hem880.07802012/08/12 23:35:270B / 33B / 53B

Python _

RankUserSizeTimeDateStatistics
1leonid990.17102012/08/15 02:22:210B / 53B / 44B
2clock990.11552012/08/15 03:30:440B / 53B / 45B
3hallvabo1030.18902012/07/19 11:19:030B / 54B / 49B
4recursive1030.16812012/08/13 22:38:440B / 56B / 45B
5clock(leonid)940.24212012/08/15 17:54:160B / 52B / 40B
6_3590.04422016/11/09 07:22:0417B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1clock940.05472012/08/14 14:39:510B / 42B / 50B

Scheme _

RankUserSizeTimeDateStatistics
1cddddr1340.09102012/08/14 18:58:320B / 66B / 55B
2kaki1220.04122013/03/25 05:18:140B / 54B / 58B

Io _

RankUserSizeTimeDateStatistics
1pooq(clock)980.18562013/06/10 10:31:390B / 54B / 43B
2pooq1020.17032013/06/10 10:16:390B / 56B / 45B

JavaScript _

RankUserSizeTimeDateStatistics
1clock810.03742012/08/14 02:19:400B / 39B / 42B
2nn840.04392012/08/13 19:43:070B / 44B / 40B
3clock(nn)780.04262012/08/15 17:59:290B / 38B / 40B

Lua _

RankUserSizeTimeDateStatistics
1clock1210.02632012/08/14 02:46:420B / 71B / 35B
2clock1170.03762012/08/15 18:04:070B / 68B / 34B

Icon _

RankUserSizeTimeDateStatistics
1clock1200.11492012/08/15 13:09:130B / 72B / 39B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock870.17082012/08/14 14:24:460B / 50B / 36B

BASIC _

RankUserSizeTimeDateStatistics
1pooq(clock)1160.05042013/06/10 12:16:020B / 68B / 36B

J _

RankUserSizeTimeDateStatistics
1I., S.800.35942012/08/05 05:27:080B / 25B / 54B

K _

RankUserSizeTimeDateStatistics
1teebee670.28232012/08/08 07:23:440B / 29B / 37B
2av710.10372012/08/14 05:48:210B / 30B / 40B

C _

RankUserSizeTimeDateStatistics
1nu1010.01162012/07/23 02:50:220B / 52B / 47B
2david_werecat1020.00012012/08/14 00:56:310B / 50B / 50B
3nn1080.01092012/08/13 19:56:010B / 55B / 51B
4inaniwa1100.00012012/07/26 22:33:330B / 56B / 52B
5cddddr1220.00402012/08/15 17:37:430B / 62B / 59B
6ngrusev1230.00022012/07/26 06:54:570B / ?B / ?B
7Y.OHNO1240.01142012/08/08 20:28:010B / 63B / 60B
8fill1260.00012012/07/20 12:47:000B / 66B / 59B
9Prase1440.00282012/07/22 00:35:030B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1060.08672012/07/27 18:41:030B / 58B / 42B
2notogawa1060.10002012/07/28 23:03:020B / 59B / 41B
3onyxite1350.04452012/07/24 02:57:090B / 86B / 36B

Pascal _

RankUserSizeTimeDateStatistics
1uru2010.01162012/08/13 08:08:550B / 135B / 49B

REBOL _

RankUserSizeTimeDateStatistics
1clock1380.37742012/08/15 12:50:120B / 77B / 35B
2clock1340.39552012/08/15 17:56:320B / 70B / 36B

GolfScript _

RankUserSizeTimeDateStatistics
1clock462.68552012/08/14 02:09:240B / 14B / 31B
2tails471.78062012/08/13 21:33:280B / 15B / 31B

Groovy _

RankUserSizeTimeDateStatistics
1clock841.27402012/08/14 02:21:080B / 45B / 35B
2nn851.42152012/08/13 19:51:140B / 47B / 36B
3clock(nn)791.97542012/08/15 18:01:500B / 42B / 35B

Language Ranking_

RankLangUserSizeScore
1GolfScriptclock4610000
2Kteebee676865
3JavaScriptclock(nn)785897
4Groovyclock(nn)795822
5JI., S.805750
6Rubyclock815679
7Perltails845476
8PARI/GPclock875287
9PHPclock944893
10Pythonclock(leonid)944893
11Iopooq(clock)984693
12Cnu1014554
13Haskellhenkma1064339
14BASICpooq(clock)1163965
15Luaclock1173931
16Iconclock1203833
17Schemekaki1223770
18REBOLclock1343432
19Pascaluru2012288

return top