Findmypast Interview Question

Can you write an algorithm that generates N prime number