Can someone take a look at the following code?

```
$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)
"n must be an integer" unless n.is_a?
"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
return prime_array
end
first_n_primes(10)
```

where the error is that it takes too long to load.