Pergunta de entrevista da empresa RBC

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