Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Marbelous, 7 bytes, depth 3, A011760 from A000027

It's been a while since this site has seen a Marbelous answer!

}0
<D++

The next answer should start with the terms:

1, 2, 3

You can try the code in es1024's Stack Snippet interpreteres1024's Stack Snippet interpreter. In put is given via command-line argument, and you should choose "Display output as decimal numbers". Otherwise, the result will be output as a byte value, which is technically also fine.

The sequence is the sequence of "elevator buttons in U.S.A.", i.e. all positive integers except 13. Note that Marbelous is limited to 8-bit numbers, but as far as I'm aware there are no buildings with anywhere near 256 floors. :)

Marbelous is a 2D language where data flows through the code in the form of marbles (byte values) falling down the grid. }0 gets replace with the first command-line argument. <D is a switch which acts as an empty cell to marbles less than 13 (the D is in base 36), so that inputs 1 to 12 pass through unaffected. If the marble is equal to or greater than 13, the marble is deflected to the right and passes through the ++ which increments the value by 1. In either case the marble then falls off the board, which prints its value.

Marbelous, 7 bytes, depth 3, A011760 from A000027

It's been a while since this site has seen a Marbelous answer!

}0
<D++

The next answer should start with the terms:

1, 2, 3

You can try the code in es1024's Stack Snippet interpreter. In put is given via command-line argument, and you should choose "Display output as decimal numbers". Otherwise, the result will be output as a byte value, which is technically also fine.

The sequence is the sequence of "elevator buttons in U.S.A.", i.e. all positive integers except 13. Note that Marbelous is limited to 8-bit numbers, but as far as I'm aware there are no buildings with anywhere near 256 floors. :)

Marbelous is a 2D language where data flows through the code in the form of marbles (byte values) falling down the grid. }0 gets replace with the first command-line argument. <D is a switch which acts as an empty cell to marbles less than 13 (the D is in base 36), so that inputs 1 to 12 pass through unaffected. If the marble is equal to or greater than 13, the marble is deflected to the right and passes through the ++ which increments the value by 1. In either case the marble then falls off the board, which prints its value.

Marbelous, 7 bytes, depth 3, A011760 from A000027

It's been a while since this site has seen a Marbelous answer!

}0
<D++

The next answer should start with the terms:

1, 2, 3

You can try the code in es1024's Stack Snippet interpreter. In put is given via command-line argument, and you should choose "Display output as decimal numbers". Otherwise, the result will be output as a byte value, which is technically also fine.

The sequence is the sequence of "elevator buttons in U.S.A.", i.e. all positive integers except 13. Note that Marbelous is limited to 8-bit numbers, but as far as I'm aware there are no buildings with anywhere near 256 floors. :)

Marbelous is a 2D language where data flows through the code in the form of marbles (byte values) falling down the grid. }0 gets replace with the first command-line argument. <D is a switch which acts as an empty cell to marbles less than 13 (the D is in base 36), so that inputs 1 to 12 pass through unaffected. If the marble is equal to or greater than 13, the marble is deflected to the right and passes through the ++ which increments the value by 1. In either case the marble then falls off the board, which prints its value.

Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

Marbelous, 7 bytes, depth 3, A011760 from A000027

It's been a while since this site has seen a Marbelous answer!

}0
<D++

The next answer should start with the terms:

1, 2, 3

You can try the code in es1024's Stack Snippet interpreter. In put is given via command-line argument, and you should choose "Display output as decimal numbers". Otherwise, the result will be output as a byte value, which is technically also fine.

The sequence is the sequence of "elevator buttons in U.S.A.", i.e. all positive integers except 13. Note that Marbelous is limited to 8-bit numbers, but as far as I'm aware there are no buildings with anywhere near 256 floors. :)

Marbelous is a 2D language where data flows through the code in the form of marbles (byte values) falling down the grid. }0 gets replace with the first command-line argument. <D is a switch which acts as an empty cell to marbles less than 13 (the D is in base 36), so that inputs 1 to 12 pass through unaffected. If the marble is equal to or greater than 13, the marble is deflected to the right and passes through the ++ which increments the value by 1. In either case the marble then falls off the board, which prints its value.