Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
using namespace std;
4
5
long 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