It's a bug and i wonder why the correct version isn't working

yea i add an r to both the "integers" and make "intergers" and it passes but with out the r it fails it

$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 is a integer." unless n.is_a? Integer

  return "n must be greater than 0." if n <= 0
  prime_array ||= []
  prime =
  for num in (1..n)
  return prime_array


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