Problem

Source: 2021 Nigerian MO Round 3/P1

Tags: number theory, Diophantine equation, primes



Find all triples of primes $(p, q, r)$ such that $p^q=2021+r^3$.