MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / gcd

Function gcd

test/test_pollard_rho.cpp:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace std;
4
5long long gcd(long long a, long long b) {
6 if (a == 0)
7 return b;
8 return gcd(b % a, a);
9}
10
11#include "pollard_rho.h"
12

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected