RBC Interview Question

code to get alternate prime number, and unique numbers occurring in an array