package day01;
import java.util.Arrays;
import java.util.Scanner;
public class 排序 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner shuru=new Scanner(System.in);
int p[]=new int[10];
System.out.println("输入10个数字");
for (int i = 0; i < p.length; i++) {
p[i]=shuru.nextInt();
}
Arrays.sort(p);
for (int i = 0; i < p.length; i++) {
int o=p[i],j;
for(j=2;j<=o;j++) {
if(o%j==0)
break;
}
if(o==j) {
System.out.println("素数"+o);
}
}
}
}