Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eru
on July 26, 2011
|
parent
|
context
|
favorite
| on:
Ten Ways to Check if an Integer Is a Power Of Two ...
Yes. It seems to work for much larger numbers than this on my version of Python, but going via doubles leaves a bad taste.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: