I am having the same problem with this one (returns 1..10) and haven't quite been able to determine the solution:

$VERBOSE = nil

require 'prime'

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
```

end

first_n_primes(10)