Question d’entretien chez Reva Solutions

Write a function to find nth prime number