fork(1) download
  1. #!perl -ln
  2. for$i(0..$_){$i-(sprintf"%b",$_)=~y/1//||print for 0..2**$_-1}
Success #stdin #stdout 0s 6000KB
stdin
4
stdout
0
1
2
4
8
3
5
6
9
10
12
7
11
13
14
15