Generating primes to square, cubed and fourth power
Solving it