Guest User

Untitled

a guest
Jan 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package aufgabe05;
  2.  
  3. public class Eratosthenes {
  4.  
  5. public static void main(String[] args) {
  6. int n = 100;
  7. buildArray(n);
  8. }
  9.  
  10. public static void buildArray(int n){
  11. int[] arr = new int[n - 1];
  12. int start = 2;
  13. for(int i = 0; i < n - 1; i++) {
  14. arr[i] = start;
  15. start++;
  16. }
  17.  
  18. }
  19.  
  20. public static void killTwo(int[] arr){
  21.  
  22. }
  23.  
  24. }
Add Comment
Please, Sign In to add comment