From 75b35b3356f813164d9d850afb349f04218bb46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Wed, 30 Nov 2016 21:37:10 +0100 Subject: [PATCH] Fixed seg fault (I think). --- src/Main.cpp | 1 + 1 file changed, 1 insertion(+) 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) {