Problem

Source: 2022 Saudi Arabia JBMO TST 2.1

Tags: number theory, Diophantine equation



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