Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Compaile/ctrack
/ countPrimesInRange
Function
countPrimesInRange
examples/multithreaded_prime_counter.cpp:19–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
}
18
19
void countPrimesInRange(int start, int end) {
20
CTRACK;
21
for (int i = start; i <= end; ++i) {
22
if (isPrime(i)) {
23
primeCount++;
24
}
25
}
26
}
27
28
int main() {
29
const int totalNumbers = 1000000;
Callers
nothing calls this directly
Calls
1
isPrime
Function · 0.85
Tested by
no test coverage detected