A prime number is a positive integer that has two positive divisors, 1 and itself. For example, 7 is a prime. Since it can only be formed by 1 * 7 (itself), 8 is not prime, because8isnotformedbyonly1*8,2*4canalsocause8,etc.
Students write a program to check the prime value by accepting an Input as an integer - display the 'Y' result if that number is a prime number. If not, display the 'N' result.