LTM Limited Interview Question

Write a program to find n prime number in time complexity logn