Problem

Source: 2023 Turkey Egmo Tst P2

Tags: number theory, prime numbers



Find all pairs of $p,q$ prime numbers that satisfy the equation $$p(p^4+p^2+10q)=q(q^2+3)$$