Added (nth-prime) helper function
Added (nth-prime) helper function