Qualcomm interview question

Code to find the prime number in a array