initial answer to nth prime in ruby