判断控制台输入的数是否为质数 package demo01; import java.util.Scanner; //此类判定输入数字是否为质数 public class test01 { public static void main(String[] args) {