You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the final comparison return collect.size() == 0; it should be return collect.size() == TestPrime.numberOfThread.intValue(); since the filter predicate lets all parts pass that succeeded the isPrime() test. So if all threads pass it, it's a prime.
Test it with a simple number, e.g. "19" and it would return false.
The text was updated successfully, but these errors were encountered:
In the final comparison
return collect.size() == 0;
it should bereturn collect.size() == TestPrime.numberOfThread.intValue();
since the filter predicate lets all parts pass that succeeded the isPrime() test. So if all threads pass it, it's a prime.Test it with a simple number, e.g. "19" and it would return false.
The text was updated successfully, but these errors were encountered: