> Since we start collecting solutions...
>
> irb(main):001:0> "%b" % 16
> => "10000"

readable and concise
beautiful !

                        UG
---
Uma Geller
http://umageller.wordpress.com