Problem

Source: Pan-American Girls’ Mathematical Olympiad 2023 P5

Tags: Divisibility



Find all pairs of primes $(p,q)$ such that $6pq$ divides $$p^3+q^2+38$$