How many positive integers smaller than 1,000,000 are powers of 2, but are not powers of 4? You may find it useful to consider that 2^10 = 1024.
The number must have an odd power.
So, the exponents can be 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, which makes for \(\color{brown}\boxed{10}\) numbers.
Python 3.9 says: 2, 8, 32, 128, 512, 2048, 8192, 32768, 131072, 524288
But NOT 1, 4, 16, 64, 256, 1024, 4096, 16384, 65536, 262144
Python also says \(2^{19} = 524,288\)