Oops, try again.

It looks like you didn't correctly use the conditional assignment operator in your code. Check the Hint if you need help!

can you check line 14. prime_array ||= [] #if prime_array.nil?

https://www.codecademy.com/courses/ruby-beginner-en-Zjd2y/0/2?curriculum_id=5059f8619189a5000201fbcb#

```
$VERBOSE = nil # We'll explain this at the end of the lesson.
require 'prime' # This is a module. We'll cover these soon!
def first_n_primes(n)
unless n.is_a? Integer
return "n must be an integer."
end
if n <= 0
return "n must be greater than 0."
end
prime_array ||= [] #if prime_array.nil?
prime = Prime.new
for num in (1..n)
prime_array.push(prime.next)
end
return prime_array
end
```