Merry Electronics interview question

1. Remove prime numbers using a function with pointer to an array and size of an array?