Octro interview question

Create another array of maximum size 5 with prime numbers from the given unsorted array