Remove all the prime numbers from the given array
Given an array arr[] of N integers, the task is to remove all the prime numbers. Examples: Input: arr[] = {4, 6, 5, 3, 8, 7, 10, 11, 14, 15} Output: 4 6 8 10 14 15 Input: arr[] = {2, 4, 7, 8, 9, 11} Output: 4 8 9 Approach: Traverse the array and check if the current number is prime, if it is then le