Pergunta de entrevista da empresa Chartboost

Write a function that takes an array of strings and returns those strings which are palindromes and whose length is a prime number.