Question: Add a function int countPrimes(int a, int b); that returns the number of prime numbers in the interval a x b. Change the main function
Add a function int countPrimes(int a, int b); that returns the number of prime numbers in the interval a x b. Change the main function to test the new code.
Please, it needs to be a function above/before the main function and it is necessary to use the given names. Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
