In a test I'll take there may be a question such as the following:
A perfect power is an integer that can be written as $a^b$, $a$ and $b$ being integers greater or equal to 2.
One of the following numbers is not a perfect power, which one is it?
- 125
- 216
- 1000
- 500
- 2500
The first three (125, 216, 1000) are simply primeNumber^something, but the last two aren't.
Keeping in mind that I can't use a calculator and should spend on average only 1 minute per question, I was wondering what's the best method I can use to resolve such questions or more difficult ones (where there are less obvious wrong solutions, such as 1000).
Note that if you know the powers of two, then you don't need to know the powers of four, eight, etc. Generally, you need to only learn/become acquainted with the powers of prime numbers.
Even then, the exponent is generally not even going to be very big - assuming that the numbers you're given are going to be not larger than a few thousand. It would probably be a good idea to just look at primes up to $\approx50$ and their first few powers.
It might also help to note that if you have an odd $a^2$, then $a$ is going to be odd as well. If $a^2$ is even, then $a$ is even. There are other such multiplicative/divisive tricks you can use for speed, but I think that if you're reasonably well acquainted with low primes and their powers, you should be okay.