A prime number id a number that can be evenly divided by only itself and 1. Writ
ID: 3642117 • Letter: A
Question
A prime number id a number that can be evenly divided by only itself and 1. Write a Boolean function named IsPrime which takes an integer as an arguement and returns True if the arguement is a prime number or false otherwise. use the function in an application that lets the user enter a number and then displays a message indicating whether the number is prime.tip: recall that the MOD operator divides one number by another and returns the remainder of the division. in an expression such as intNum1 MOD intNum2, the MOD operator will return 0 if intNum1 is evenly divisible by intNum2.