Braingolf, A010701 Score: 9 [SAFE]
Byte set:
0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C
The code:
$_/[!?:]|[!?:]|
##Explanation
Explanation
$_/[!?:]|[!?:]| Implicit input from commandline args
$_ Remove top of stack
/ Niladic division, push 5
[...] While loop, decrements bottom of stack at start of loop
then decrements each time loop reaches end
Exits when bottom of stack is 0
!?:.| If conditional without popping, runs contained code if top of stack is 0
This is the sneaky trick here. The conditional skips the end of the loop
As a result, this whole block from [ to | effectively acts as a decrement.
[!?:]| We do this twice to lower the 5 we pushed down to 3
Implicit output of top of stack.