Tutorial: Euclidean Algorithm for GCD
A very useful inbuilt function in C++
is the std::gcd function in C++ to calculate the GCD of two numbers.
Being defined for an integer n as the number of integer less than or equal to n and co-prime with n, the totient function is an important one to read about.
Tutorial: The Phi Function
Here are some links to practice question based on the aforementioned topics:
Challenge Problems: