Fixed seg fault (I think).
This commit is contained in:
parent
3bb757dc0d
commit
75b35b3356
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user