Pregunta de entrevista de ServiceNow

Write an algorithm to return the first 1000 prime numbers