Problem - Check Prime Number
Write a Java program that prompts the user to enter an integer and then checks whether that integer is a prime number. A prime number is a positive integer greater than 1 that has no positive integer divisors other than 1 and itself.
编写一个 Java 程序,提示用户输入一个整数,然后检查该整数是否为质数。质数是一个大于 1 的正整数,除了 1 和它本身之外没有正整数因子。