Publicis Sapient Interview Question

Write a compact code for filtering out prime numbers from a list of numbers.