Monday, November 27, 2017

gcd and lcm - GCD of two big numbers

How to find gcd(51001,51201)?
The problem is numbers are really big (5100 is 70 digits). None of the numbers is prime.
I ran Euclid's algorithm on Python and found the answer in less than a second, however it seems that there is no on-paper approach to this problem, is it?

No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...