Adding solution for finding the N-th prime number