There is a bug- can't move on to the next lesson


I can’t move on to the next lesson. I don’t see any errors, but the run button won’t let me move on to the next lesson. I think there’s a bug. It’s quite frustrating to stay on one exercise for hours. Please fix this problem.

$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 =
  n.times { prime_array << }

Replace this line with your code. 


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.