|
@ -67,6 +67,23 @@ public class ProgrammMain { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Prinmbis100 |
|
|
|
|
|
public static void PrimBis100() { |
|
|
|
|
|
for (int i = 2; i <= 100; i++) { |
|
|
|
|
|
boolean isPrime = true; |
|
|
|
|
|
for (int j = 2; j < i; j++) { |
|
|
|
|
|
if (i % j == 0) { |
|
|
|
|
|
isPrime = false; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (isPrime) { |
|
|
|
|
|
System.out.print(i + " "); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -91,7 +108,7 @@ public class ProgrammMain { |
|
|
//Funktion |
|
|
//Funktion |
|
|
break; |
|
|
break; |
|
|
case 3: |
|
|
case 3: |
|
|
System.out.println("Diese Funktion wird derzeit entwickelt! Hab bitte etwas Geduld oder sei kreativ und erstelle dir selber eine Funktion!"); |
|
|
|
|
|
|
|
|
PrimBis100(); |
|
|
//Funktion |
|
|
//Funktion |
|
|
break; |
|
|
break; |
|
|
case 4: |
|
|
case 4: |
|
|