if(num==0) return false; double storeLogValue= log(num)/log(4); if(storeLogValue == trunc(storeLogValue)) return true; return false;