(import std.Math :floor) (mut n 1024) (while (> n 0) { (print n) (set n (floor (/ n 2))) })