Euler's Theoram to find GCD