nth-prime from Exercism.io