Write a C++ function (along with er functions) that prints out all the prime numbers in a given array of integers. Your code should follow the exact function declaration given below: void printPrimes(int array[], int arr_size); Input: int array[]: Array of integers that will be passed to this function as a reference int arr_size: Size of the input array Output: Prints all primes in the array of numbers
Example: array = [2, 5, 6, 8, 7, 9, 3, 10]
Prints: 2, 5, 7, 3 2