Problem

Source: Centroamerican Olympiad 2016, problem 1

Tags: number theory, Digits



Find all positive integers $n$ that have 4 digits, all of them perfect squares, and such that $n$ is divisible by 2, 3, 5 and 7.