Findmypast interview question

Can you write an algorithm that generates N prime number