This is the code of extended eulib algorithm . But all my testcase not pass. Can you tell the error please


This is the code of extended eulib algorithm . But all my testcase not pass.
Can you tell the error please