The Refactor Factory - 3. Omit Needless Words - SCT Error
I keep getting an SCT Error when I try to run my code. I'm not entirely sure what an SCT Error is but from what I've looked up it seems to be a code-checker issue.
Any help would be much appreciated. Thanks.
My code is:
$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) puts "n must be an integer." unless n.is_a? Integer puts "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)