Pergunta de entrevista da empresa Accenture

How would you write a method to select all prime numbers from 1-100