Morgan Stanley Interview Question

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