Uses mathematical properties of sum squares and square sums rather than brute force the issue.