Added nth method returning nth prime number.