I didn't understand


#1

I really didn't understand the prime.first n. It runs the loop until the n value and put the number in ther first position????


#2

https://www.codecademy.com/en/courses/ruby-beginner-en-Zjd2y/0/7

It literally means what it says. first N primes. prime() is a method that generates successive prime numbers, up to a count of values, N.


#3

thanks, bro! :smiley: I got confused cuz' I was thought in .first method from array