Problem

Source: 2001 China National Olmpiad

Tags: number theory, number theory proposed



Let $a,b,c$ be positive integers such that $a,b,c,a+b-c,a+c-b,b+c-a,a+b+c$ are $7$ distinct primes. The sum of two of $a,b,c$ is $800$. If $d$ be the difference of the largest prime and the least prime among those $7$ primes, find the maximum value of $d$.