func IsPowerOf(num, base int) bool {
	if base%2 == 0 && num%2 != 0 {
		return false
	}

	for num > 0 {
		if num == 1 {
			return true
		}
		num /= base
	}
	return false
}
// IsPowerOf checks if a number is a power of base
IsPowerOf checks if a number is a power of base
// IsPowerOf checks if a number is a power of base
func IsPowerOf(num, base int) bool {
	if base%2 == 0 && num%2 != 0 {
		return false
	}
	for num > 0 {
		if num == 1 {
			return true
		}
		num /= base
	}
	return false
}
func IsPowerOf ( num , base int ) bool { if base % 2 == 0 && num % 2 != 0 { return false } for num > 0 { if num == 1 { return true } num /= base } return false }
IsPowerOf checks if a number is a power of base
IsPowerOf checks if a number is a power of base