Question: PYTHON: Prime numbers are used heavily in mathematics for many types of problems. Identifying prime numbers is a common issue in many algorithms. A prime
PYTHON:
Prime numbers are used heavily in mathematics for many types of problems. Identifying prime numbers is a common issue in many algorithms. A prime number is a number that is only evenly divisible itself and 1. Examples of prime numbers are 2, 3, 5, 7, 11, 13, 17, 23, etc. 21 is not a prime number because it is divisible by 3 and 7.
Write a program that:
1. Prompts the user to enter a positive whole number
2. Determines whether or not the number is prime
3. Displays to the user whether or not the number was prime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
