Exercise: Check Whether a Number is Prime
Explore how to determine whether a number is prime in Python by correcting a given function. Understand the properties of prime numbers and practice applying Python basics such as conditionals and loops to produce accurate results.
We'll cover the following...
We'll cover the following...
Prime numbers are numbers that are only divisible by itself and 1. Examples of these are the following:
2, 3, 5, 7, 11, 13
Problem statement
The following program checks ...