diff --git a/src/Main.cpp b/src/Main.cpp index 66d67e9..116952e 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -29,6 +29,7 @@ int main(void) { ++num; } bool isPrime = true; + #pragma omp barrier for(auto i : primes) { if(i > myNum / 2) break; if(myNum % i == 0) {