Pergunta de entrevista da empresa ServiceNow

Write an algorithm to return the first 1000 prime numbers