Difference is Prime

Suppose that the difference between a2 + b and b2 + a is a prime, where a and b are positive integers.

Find a and b.

Solution