Remember: Include and exclude!

How many integers from $1$ to $10^6$ (inclusive) are neither perfect squares nor perfect cubes nor perfect fourth powers?

×