Solve nth prime