Place a different prime number or perfect square in each of the twenty-one disks that make up the triangle below, so that the number in any disk that lies on two others is precisely the sum of the numbers in those disks. Do so in such a way that the number in the apex is as small as possible.
Source: Based on a puzzle in here