結果 : sum of two squares algorithm