This commit is contained in:
Matti 2024-04-10 16:19:47 +02:00
parent 5bac2ea38c
commit abec2bcf81

View File

@ -16,7 +16,7 @@ public class aufg3 {
Arrays.fill(primes, true);
for(int i=2; i < MAXIMUM*0.5; i++){
for(int i=2; i < MAXIMUM * 0.5; i++){
for(int j=2; j < MAXIMUM; j++){
int index = i * j;
@ -29,7 +29,7 @@ public class aufg3 {
int counter = 0;
for(int i=0; i < primes.length; i++){
if(primes[i] && i>1) {
if(primes[i] && i > 1) {
System.out.print(i + " ");
counter++;
if (counter % MAX_PER_ROW == 0) {