求助一道计算机算法题Write an algorithm which asks the user to enter a
求助一道计算机算法题
Write an algorithm which asks the user to enter a number and the program will print
either (a) “the number is a prime number” if the number entered is a prime number or (b)
“the number is not a prime number” if the number entered is not a prime number.
A prime number (or a prime) is a natural number greater than 1 that has no positive
divisors other than 1 and itself.For example,these numbers are all prime numbers:2,3,
5,7,11,13,17,19; however,these numbers are not prime numbers:1,4,6,8,9,10,12,
14,15,16,18.