Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package aufgabe05;
- public class Eratosthenes {
- public static void main(String[] args) {
- int n = 100;
- buildArray(n);
- }
- public static void buildArray(int n){
- int[] arr = new int[n - 1];
- int start = 2;
- for(int i = 0; i < n - 1; i++) {
- arr[i] = start;
- start++;
- }
- }
- public static void killTwo(int[] arr){
- }
- }
Add Comment
Please, Sign In to add comment