import java.util.Scanner; public class text { public static void main(String[] args) { System.out.print("你好!\n"); Scanner input=new Scanner(System.in); int k=1,n=input.nextInt(); for (int i = 1; i <= n; i++) { for (int j = 2; j < i; j++) { k=i%j; if (k==0) { break; } } if (k!=0) { System.out.printf("%d\n", i); } } input.close(); } }