Problem

Source:

Tags: number theory, Sum of Squares



Find the distinct positive integers $a, b, c,d$, such that the following conditions hold: (1) exactly three of the four numbers are prime numbers; (2) $a^2 + b^2 + c^2 + d^2 = 2018.$