Problem

Source:

Tags: number theory, prime numbers, Perfect Squares, positive integers, contests, Argentina



Let $m$ be a positive integer for which there exists a positive integer $n$ such that the multiplication $mn$ is a perfect square and $m- n$ is prime. Find all $m$ for $1000\leq m \leq 2021.$