Sabre interview question

Write an algorithm printing N first prime numbers.