Life is a series of rude awakenings
int isTwoPower(int n){ if( n < 1 ) return 0; return !(n & (n-1));}