Problem

Source: 2018 Centroamerican and Caribbean Math Olympiad

Tags: number theory, Centroamerican, prime numbers



Let $x, y$ be real numbers such that $x-y, x^2-y^2, x^3-y^3$ are all prime numbers. Prove that $x-y=3$. EDIT: Problem submitted by Leonel Castillo, Panama.