isPrimePower function

Finds a prime power solution for N, if available.