Problem

Source: Bulgarian Winter Tournament 2024 9.2

Tags: number theory



Let $p>q$ be primes, such that $240 \nmid p^4-q^4$. Find the maximal value of $\frac{q} {p}$.