Problem

Source: Indonesian Stage 1 TST for IMO 2022, Test 4 (Combinatorics)

Tags: combinatorics, counting



Let $A$ be a subset of $\{1,2,\ldots,2020\}$ such that the difference of any two distinct elements in $A$ is not prime. Determine the maximum number of elements in set $A$.