This commit is contained in:
Matti 2024-04-10 21:06:04 +02:00
parent e9f2dd5c52
commit 1b367eebc6
3 changed files with 4 additions and 2 deletions

View File

@ -9,8 +9,10 @@ public class aufg1 {
System.out.println(i); System.out.println(i);
} }
} }
System.out.println("================="); System.out.println("=================");
System.out.println("================="); System.out.println("=================");
for(int i = MAXIMUM; i > 1; i--){ for(int i = MAXIMUM; i > 1; i--){
if(i % 2 == 1){ if(i % 2 == 1){
System.out.println(i); System.out.println(i);

View File

@ -9,7 +9,7 @@ public class aufg3 {
// ===================== // =====================
public static void main(String[] args){ public static void main(String[] args){
int MAXIMUM = 10_000; int MAXIMUM = 100_000;
int MAX_PER_ROW = 20; int MAX_PER_ROW = 20;
boolean[] primes = new boolean[MAXIMUM]; boolean[] primes = new boolean[MAXIMUM];