Aversan interview question

Output prime number in an array