Morgan Stanley interview question

Write a program to determine the prime numbers in an array.