Question: 2. Prime numbers (20 points) a. Write a function that tests whether a number is prime (ie is only evenly divisible by itself and 1).

2. Prime numbers (20 points) a. Write a function that tests whether a number is prime (ie is only evenly divisible by itself and 1). b. In main(), use a loop to print the first 20 prime numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
