Skip to main content
Challenges Euclidean algorithm: GCD
Cryptography Easy GCD and Euclidean algorithm Solves: 18

Euclidean algorithm: GCD

Author: CyberSamSU
Points
12

The greatest common divisor (GCD) of two numbers is the largest number that divides both of them without a remainder. This operation occurs very often in cryptography: for example, in RSA, e and φ(n) must be coprime, meaning GCD(e, φ(n)) = 1 is required.

The Euclidean algorithm finds this in a few steps. The idea is very simple: EKUB(a, b) = EKUB(b, a mod b), and when b = 0 the answer is equal to a. Even for large numbers, this finishes in a few dozen steps.

Find the GCD of the following two numbers.

a = 4395877176460349132051753825
b = 6971305226299864251445650827

Answer: only a number — in decimal format, without spaces or additional characters (for example 1234).

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −2 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 26.10.2026
3. Odam 04.11.2026
4. ya_d0na 11.11.2026
5. Doston Allayarov 12.11.2026
6. Maftuna 13.11.2026
7. Jasmin Xuseinova 15.11.2026
8. Zulxumor 19.11.2026
9. Azizjon_20061609 19.11.2026
10. rushana24 19.11.2026