Nth prime exercise | 1st iteration