Question: 4. (10 points) Write a function that counts the number of prime numbers between two numbers. If you don't recall what a prime number is,

4. (10 points) Write a function that counts the number of prime numbers between two numbers. If you don't recall what a prime number is, checkout this link: https://en.wikipedia.org/wiki Prime number, Your implementation must have the following properties: (a) Name: Count PrimeNumbersInRange (b) Return type: An integer (c) Argument 1- Input: An integer (d) Argument 2 - Input: An integer 5. (10 bonus pts): Implement a function that finds a sub-string in a string. The function must have the following properties: (a) Name: FindSubstring (b) Return type: int - position where the sub-string starts, and -1 if sub-string was not found (c) Input type 1: Const string. (d) Input type 2: Const sub-string. Examples FindSubstring("Hello World", "Hello")0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
