import java.util.Scanner;public class IsPrime { Scanner input = new Scanner(System.in); //用户输入的数 int num = 0; //标记是否是质数 boolean flag = true; System.out.println("请输入你要判断的数:"); num = input.nextInt(); if(num <= 0) { S...