Implement method for getting n-th prime number