SMB3 15 bit LFSR

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

In Super Mario Brothers 3(SMB3), random number generation is done with a 15-bit LSFR.

The 7th and 15th digits are xor'd to form the new first digit, then the 15th digit is cut off and the new first digit affixed.

Assuming the LSFR has an initial value of 1, print the first 100 numbers that result from the application of this process.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

*NOTHING*

Sample output:

16384
8192
4096
2048
1024
512
256
16512
8256
4128
2064
1032
516
258
16513
24640
12320
6160
3080
1540
770
16769
8384
4192
2096
1048
524
262
16515
24641
28704
14352
7176
3588
1794
17281
8640
20704
10352
5176
2588
1294
17031
24899
12449
22608
11304
5652
2826
17797
8898
4449
2224
1112
556
278
16523
24645
28706
14353
23560
11780
5890
19329
9664
21216
10608
21688
10844
5422
19095
25931
12965
22866
27817
30292
15146
23957
11978
5989
2994
17881
8940
4470
18619
25693
29230
14615
7307
20037
26402
29585
14792
23780
11890
5945
2972
17870
25319
29043
14521

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o330.02382023/10/14 21:16:520B / 18B / 15B
2tails (rotary-o)320.02022023/10/23 19:40:430B / 15B / 17B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o360.15032023/10/14 21:15:400B / 25B / 9B
2Sisyphus370.06112023/10/09 12:26:470B / 20B / 16B

Perl _

RankUserSizeTimeDateStatistics
1tails410.01512023/10/11 09:47:260B / 23B / 18B
2fuzzylojik430.01472023/10/10 21:50:330B / 23B / 20B
3Sisyphus440.04032023/10/09 12:55:410B / 15B / 29B

Python _

RankUserSizeTimeDateStatistics
1xnor410.03752023/10/10 09:11:040B / 26B / 13B
2fuzzylojik410.05862023/10/10 21:44:580B / 26B / 14B
3lynn410.03282023/10/10 23:52:060B / 26B / 13B
4Dingledooper430.03192023/10/09 12:48:490B / 24B / 17B
5Sisyphus430.03252023/10/09 12:51:190B / 24B / 17B

Python3 _

RankUserSizeTimeDateStatistics
1xnor450.05192023/10/10 09:14:370B / 26B / 18B
2fuzzylojik450.04702023/10/10 21:44:360B / 26B / 19B
3fuzzylojik(alt)450.04772023/10/10 21:45:560B / 28B / 15B
4lynn450.04712023/10/10 23:51:490B / 26B / 18B
5berry balls470.04992023/10/09 13:09:110B / 27B / 18B
6contina500.04562023/10/11 22:11:110B / 29B / 19B
7albanian_laundromat560.04862023/10/20 22:25:200B / 30B / 22B

JavaScript _

RankUserSizeTimeDateStatistics
1fuzzylojik420.02282023/10/10 04:03:470B / 28B / 14B
2Sisyphus430.02252023/10/09 13:06:210B / 24B / 19B
3KrausRaus820.02322023/10/09 10:01:500B / 52B / 30B

Atlas _

RankUserSizeTimeDateStatistics
1tails260.25662023/10/11 09:42:050B / 14B / 12B

C _

RankUserSizeTimeDateStatistics
1nu550.01382023/10/15 11:00:121B / 27B / 27B
2rotary-o550.01412023/10/15 12:13:221B / 25B / 29B
3tails550.01412023/10/16 09:21:311B / 25B / 29B
4fuzzylojik550.01402023/10/21 10:12:501B / 24B / 30B
5Sisyphus580.01412023/10/09 15:19:450B / 30B / 28B

C++ _

RankUserSizeTimeDateStatistics
1fuzzylojik690.01412023/10/21 10:13:401B / 34B / 33B

ObjC _

RankUserSizeTimeDateStatistics
1fuzzylojik550.01412023/10/21 10:14:541B / 24B / 30B

Java _

RankUserSizeTimeDateStatistics
1rotary-o730.22982023/10/15 22:32:050B / 48B / 23B
2fuzzylojik(now that I figured out how to submit Java code)730.06052023/10/24 00:15:570B / 48B / 23B

C# _

RankUserSizeTimeDateStatistics
1fuzzylojik960.04772023/10/10 03:56:550B / 68B / 24B
2rotary-o960.04142023/10/15 22:32:180B / 68B / 24B

sed _

RankUserSizeTimeDateStatistics
1tails1770.03072023/10/18 12:57:360B / 48B / 116B
2McBusLuck5620.01462023/10/13 22:24:140B / ?B / ?B

Bash _

RankUserSizeTimeDateStatistics
1tails320.01272023/10/11 10:37:330B / 19B / 12B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails440.01232023/10/09 21:53:360B / 24B / 17B
2tails430.00562023/10/23 19:48:460B / 21B / 19B

dc _

RankUserSizeTimeDateStatistics
1tails310.00962023/10/11 10:30:410B / 20B / 10B

Whitespace _

RankUserSizeTimeDateStatistics
1rotary-o1310.01722023/10/14 23:57:090B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1tails240.02932023/10/11 10:22:290B / 11B / 12B

gs2 _

RankUserSizeTimeDateStatistics
1tails190.11602023/10/10 09:45:228B / 5B / 4B
2whio190.07422023/10/17 23:47:097B / 8B / 2B

Nibbles _

RankUserSizeTimeDateStatistics
1tails140.03532023/10/10 10:25:098B / 5B / 1B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik350.03302023/10/19 04:34:530B / 21B / 13B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o502.84612023/10/14 21:04:513B / 25B / 21B

Language Ranking_

RankLangUserSizeScore
1Nibblestails1410000
2gs2tails197368
3GolfScripttails245833
4Atlastails265384
5dctails314516
6Bashtails324375
7Rubytails (rotary-o)324375
8BurlesqueHendrik354000
9Ruby2rotary-o363888
10Pythonxnor413414
11Perltails413414
12JavaScriptfuzzylojik423333
13Bash (builtins)tails433255
14Python3xnor453111
15Scalarotary-o502800
16Cnu552545
17ObjCfuzzylojik552545
18C++fuzzylojik692028
19Javarotary-o731917
20C#fuzzylojik961458
21Whitespacerotary-o1311068
22sedtails177790

return to the top page