int calcGCD(const int& a, const int& b) { if (b == 0) { return a; } int reminder = a % b; return calcGCD(b, reminder); }
bool isCoprime(int a, int b) { return calcGCD(a, b) == 1; }