Removed threshold value from previous commit because introduced errors
If numberOfPrimes changes it creates errors for some values.