Paperless Parts interview question

Write an algorithm that finds the first N prime numbers.