Question d’entretien chez Morgan Stanley

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