Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 2.01 KB

[EP 3] GCD and Totient function.md

File metadata and controls

39 lines (36 loc) · 2.01 KB

Euclidean GCD and Euler's Totient function

You'll see a fair number of easy mathy problems whose solutions involve finding and using the Greatest Common Divisor (GCD) of some numbers. The Euler totient function is rarer, but it is still good to know.

Reading material:

Problems

Challenging problems

Tip: Use std::gcd or __gcd() (a builtin function of the GCC compiler).