Beispiel #1
0
 public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   Prime p = new Prime();
   int x;
   while ((x = sc.nextInt()) > 0) {
     p.primeSieve(x);
     // System.out.println();
   }
 }