Problem

Source: Balkan MO 2021 P3

Tags: number theory



Let $a, b$ and $c$ be positive integers satisfying the equation $(a, b) + [a, b]=2021^c$. If $|a-b|$ is a prime number, prove that the number $(a+b)^2+4$ is composite. Proposed by Serbia