Back to The World of Algorithms
Class 9 · Ganita Manjari · Unit 11: The World of Algorithms

The Euclidean Algorithm — 2300 Years Old and Still Best

Lesson 2 of 3
To find gcd⁡(252,105)\gcd(252, 105): divide, take remainder, repeat. 252=2⋅105+42252 = 2\cdot 105 + 42, 105=2⋅42+21105 = 2\cdot 42 + 21, 42=2⋅21+042 = 2\cdot 21 + 0. HCF is the last non-zero remainder: 2121. Nothing beats it for speed on large numbers.
Gyaan Maths — CBSE Class 6-12, built for board-toppers.
v1.1 · Sept 2026