Jelly, 7 bytes
2Bṗ4ṫ6Y
(5 bytes if trailing lines of nybbles are allowed, 2Bṗ4Y
)
How?
Prints in descending order.
2Bṗ4ṫ6Y - Main link, no arguments
2B - 2 converted to binary -> [1,0]
ṗ4 - Cartesian 4th power -> [[1,1,1,1], [1,1,1,0], ..., [0,0,0,0]]
i.e. 16 , 15 ..., 0
ṫ6 - tail from 6th item -> [[1,0,1,0], [1,0,0,1], ..., [0,0,0,0]]
i.e. 10 , 9 , ..., 0
Y - join with line feeds
- implicit print
An alternative 7-byter is 2ṗ4Ịṫ6Y
, the [1,0]
is replaced with [1,2]
and Ị
is the "is insignificant" monad (abs(z)<=1
), converting 2
s to 0
s.