Problem

Source: Baltic Way 2016, Problem 1

Tags: number theory, Diophantine equation



Find all pairs of primes $(p, q)$ such that $$p^3 - q^5 = (p + q)^2.$$