in reply to (Golf) Master lock combinations
then$a=sprintf "%02d%02d%02d",$_[0]%4,(2+$_[0])%40%4,$_[0];
In all my attempts so far though the list representation is more compact since it's verbose to set up and format the string. Thought it was cool though, will give it more thought.for(1..100){$a+=$_%10?400:36400;}
|
|---|