import java.util.Scanner;public class Prime { public static void main(String args[]) { System.out.println("请输入一个数字:");Scanner sc = new Scanner(System.in);int num = sc.nextInt();int count = 0;if (isPrimes(num)) { System.out.println(num + "是一个质数!");} e...