Problem

Source: Indian RMO 2013 Paper 1 Problem 3

Tags: number theory, easy, nice



Find all primes $p$ and $q$ such that $p$ divides $q^2-4$ and $q$ divides $p^2-1$.