Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -12,7 +12,8 @@ public final class EuclidMullinSequence {
|
|||
System.out.println("The first 27 terms of the Euclid-Mullin sequence:");
|
||||
System.out.print(2 + " ");
|
||||
for ( int i = 1; i < 27; i++ ) {
|
||||
System.out.print(String.format("%s%s", nextEuclidMullin(), ( i == 14 || i == 27 ) ? "\n" : " "));
|
||||
System.out.print(
|
||||
String.format("%s%s", nextEuclidMullin(), ( i == 14 || i == 27 ) ? "\n" : " "));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -67,7 +68,7 @@ public final class EuclidMullinSequence {
|
|||
sieve.set(2, aLimit + 1);
|
||||
|
||||
for ( int i = 2; i * i <= aLimit; i = sieve.nextSetBit(i + 1) ) {
|
||||
for ( int j = i * i; j <= aLimit; j = j + i ) {
|
||||
for ( int j = i * i; j <= aLimit; j += i ) {
|
||||
sieve.clear(j);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue