class OutputFig{
public static void main(String[] args){
int number=2;
int count=0;
boolean isPrime=true;
while(number<=10000){
for(int i=2;i<=number/2;i++)
if(number%i==0){
isPrime=false;
break;
}
if(isPrime){
count++;
if(count%8==0){
System.out.println();
System.out.print(number+" ");
}
else
System.out.print(number+" ");
}
number++;
class OutputFig{
public static void main(String[] args){
int number=2;
int count=0;
boolean isPrime=true;
while(number<=10000){
for(int i=2;i<=number/2;i++)
if(number%i==0){
isPrime=false;
break;
}
if(isPrime){
count++;
if(count%8==0){
System.out.println();
System.out.print(number+" ");
}
else
System.out.print(number+" ");
}
number++;
class OutputFig{
public static void main(String[] args){
int number=2;
int count=0;
boolean isPrime=true;
while(number<=10000){
for(int i=2;i<=number/2;i++)
if(number%i==0){
isPrime=false;
break;
}
if(isPrime){
count++;
if(count%8==0){
System.out.println();
System.out.print(number+" ");
}
else
System.out.print(number+" ");
}
number++;
isPrime=true;//就这么加个就可以咯。
}
}
}
}
}
}
}
}
}