[math-fun] Finding representation as sum of 2 or 4 squares using Gausian & Quaternion GCDs