Fixed seg fault (I think).

This commit is contained in:
Nicolás A. Ortega 2016-11-30 21:37:10 +01:00
parent 3bb757dc0d
commit 75b35b3356
No known key found for this signature in database
GPG Key ID: 614272579C2070D1

View File

@ -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) {