public SuShu{
public static void main(String[] args){
int a[] = new int[10];
for(int k = 0; k < 10; i++)
int s = (int)Math.random()*200;
while(true){
if(s > 2 && s < 200){
a[k] =s;
break;
}else{
s = (int)Math.random()*200;
}
}
}
for(int m = 0; m < a.length; m++){
System.out.println(a[m]);
}
for(int i = 0;i < a.length ;i++){
int j = 2;
while(a[i] % j != 0 && j <= (int)a[i]/2){
j++;
if(j>(int)a[i]/2){
System.out.println(a[i]);//打印素数
}
}
}
}