SMB3 15 bit LFSR
Submit
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
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 41 | 0.0151 | 2023/10/11 09:47:26 | 0B / 23B / 18B |
2 | fuzzylojik | 43 | 0.0147 | 2023/10/10 21:50:33 | 0B / 23B / 20B |
3 | Sisyphus | 44 | 0.0403 | 2023/10/09 12:55:41 | 0B / 15B / 29B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | xnor | 41 | 0.0375 | 2023/10/10 09:11:04 | 0B / 26B / 13B |
2 | fuzzylojik | 41 | 0.0586 | 2023/10/10 21:44:58 | 0B / 26B / 14B |
3 | lynn | 41 | 0.0328 | 2023/10/10 23:52:06 | 0B / 26B / 13B |
4 | Dingledooper | 43 | 0.0319 | 2023/10/09 12:48:49 | 0B / 24B / 17B |
5 | Sisyphus | 43 | 0.0325 | 2023/10/09 12:51:19 | 0B / 24B / 17B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 26 | 0.2566 | 2023/10/11 09:42:05 | 0B / 14B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nu | 55 | 0.0138 | 2023/10/15 11:00:12 | 1B / 27B / 27B |
2 | rotary-o | 55 | 0.0141 | 2023/10/15 12:13:22 | 1B / 25B / 29B |
3 | tails | 55 | 0.0141 | 2023/10/16 09:21:31 | 1B / 25B / 29B |
4 | fuzzylojik | 55 | 0.0140 | 2023/10/21 10:12:50 | 1B / 24B / 30B |
5 | Sisyphus | 58 | 0.0141 | 2023/10/09 15:19:45 | 0B / 30B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 177 | 0.0307 | 2023/10/18 12:57:36 | 0B / 48B / 116B |
2 | McBusLuck | 562 | 0.0146 | 2023/10/13 22:24:14 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 32 | 0.0127 | 2023/10/11 10:37:33 | 0B / 19B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 44 | 0.0123 | 2023/10/09 21:53:36 | 0B / 24B / 17B |
2 | tails | 43 | 0.0056 | 2023/10/23 19:48:46 | 0B / 21B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 31 | 0.0096 | 2023/10/11 10:30:41 | 0B / 20B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 24 | 0.0293 | 2023/10/11 10:22:29 | 0B / 11B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 19 | 0.1160 | 2023/10/10 09:45:22 | 8B / 5B / 4B |
2 | whio | 19 | 0.0742 | 2023/10/17 23:47:09 | 7B / 8B / 2B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 14 | 0.0353 | 2023/10/10 10:25:09 | 8B / 5B / 1B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Nibbles | tails | 14 | 10000 |
2 | gs2 | tails | 19 | 7368 |
3 | GolfScript | tails | 24 | 5833 |
4 | Atlas | tails | 26 | 5384 |
5 | dc | tails | 31 | 4516 |
6 | Bash | tails | 32 | 4375 |
7 | Ruby | tails (rotary-o) | 32 | 4375 |
8 | Burlesque | Hendrik | 35 | 4000 |
9 | Ruby2 | rotary-o | 36 | 3888 |
10 | Python | xnor | 41 | 3414 |
11 | Perl | tails | 41 | 3414 |
12 | JavaScript | fuzzylojik | 42 | 3333 |
13 | Bash (builtins) | tails | 43 | 3255 |
14 | Python3 | xnor | 45 | 3111 |
15 | Scala | rotary-o | 50 | 2800 |
16 | C | nu | 55 | 2545 |
17 | ObjC | fuzzylojik | 55 | 2545 |
18 | C++ | fuzzylojik | 69 | 2028 |
19 | Java | rotary-o | 73 | 1917 |
20 | C# | fuzzylojik | 96 | 1458 |
21 | Whitespace | rotary-o | 131 | 1068 |
22 | sed | tails | 177 | 790 |
return to the top page