<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/courses/learn-ruby/lessons/the-refactor-factory/exercises/less-is-more?action=lesson_resume

<In what way does your code behave incorrectly? Include ALL error messages.>

After making the changes, the program won’t run. I’m stuck on this lesson.

```
$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)
return "n must be an integer." unless n.is_a? Integer
return "n must be greater than 0." if n <= 0
prime_array ||= []
prime = Prime.new
for num in (1..n)
prime_array.push(prime.next)
end
prime_array #return removed
end
first_n_primes(10)
```