Omit needless words


#1

https://www.codecademy.com/courses/learn-ruby/lessons/the-refactor-factory/exercises/omit-needless-words?action=lesson_resume

Hit Run but no error message. Cant advance.



$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? Integer  
"n must be greater than 0" if n <= 0
  prime = Prime.instance
  prime.first n 
end

puts first_n_primes(10). 


Any help would be greatly appreciated.
Thanks


#2

Try taking off the dot at the end of the closing ).


#3

I took it out. Still doesnt work.
But thanks though.
Any other ideas?


#4

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