Re-fixed calculation error
This commit is contained in:
1 parent
b428067dab
commit
c5bb12b39f
1 file changed
+1
-1
@@ -87,7 +87,7 @@ public abstract class PrimeCalculator {
|
||||
long endSqrt = (long) Math.sqrt(end) + 1;
|
||||
|
||||
byte block = 0;
|
||||
int p = 3;
|
||||
int p = 2;
|
||||
while (p < endSqrt) {
|
||||
p = nextPrime(p);
|
||||
|
||||
|
||||
Reference in new issue
Block a user