Pergunta de entrevista da empresa Fast Enterprises

How to code a function to find prime numbers.