We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
User:Blashyrkh/Golf
Jump to navigation
Jump to search
. |~~,
O / 0 |__|
\\/ . |
/\ . 110 |
_/_/___________________________10010|_______
Code golf! \011/
- ↑ Unary infinite counter. For languages capable of ASCII output a series of asterisk symbol must be printed, delimited by newline. For languages capable of binary output series of "1" must be delimited with single "0".
- ↑ For languages with binary output '0' and '1' bits should be used instead of characters '1' and '2' respectively (i.e. the output should start like this: 01100101101100100...)
- ↑ Input: two arbitrary-length non-negative decimal numbers delimited with newline character. Output: their sum without leading zeroes, trailed by newline character.
- ↑ Same I/O requirements as for A+B. The input values are non-negative, but result may be any. Negative results must be prepended with - sign.
- ↑ From 1 to infinity.
- ↑ Should affect character ranges [A-Z] and [a-z] keeping all other characters intact.
- ↑ For languages with ASCII output it should print infinite series of prime numbers delimited with a single space (2 3 5 7...). For languages with binary output i'th (zero-based) bit of output should be "1" if i is prime and "0" otherwise (001101010001...).
- ↑ 8.0 8.1 For languages with ASCII output it should print decimal value with dot as a separator between integer and fractional parts. For languages with binary output it should print all binary digits of the constant without any separator.
Competitors
The code
Most of the code is placed at corresponding languages pages and/or corresponding program forms pages. The rest can be found here: User:Blashyrkh/Golf/Code