Let ${x_1, x_2, x_3, . . . , x_n}$ be a set of $n$ distinct positive integers, such that the sum of any $3$ of them is a prime number. What is the maximum value of $n$?
This question is from the NZMO for year $2021$.
I began this problem by knowing that obviously $n=3$ is possible.
Then we show that $n = 4$ is possible with an example. The example ${x_1, x_2, x_3, x_4} = {1, 3, 7, 9}$ satisfies the problem because:
• $1 + 3 + 7 = 11$ is prime,
• $1 + 3 + 9 = 13$ is prime,
• $1 + 7 + 9 = 17$ is prime, and
• $3 + 7 + 9 = 19$ is prime.
We now have to prove that $n ≥ 5$ is impossible. I am stuck here and I do not know how to continue calculating the question to get an answer.
However, I am thinking that any set ${x_1, x_2, x_3, . . . , x_n}$ such that the sum of any $3$ of them is a prime number to consider the three “pigeonholes” modulo $3$; the residue $0, 1$ and $2$.
If anyone can help solve this problem and explain it to me, I would appreciate it a lot. Thank you very much.