Something I coded finds infinite loops! What should I do ? What's wrong?
$VERBOSE = nil # We'll explain this at the end of the lesson.
require 'prime' # This is a module. We'll cover these soon!
unless n.is_a? Integer
return "n must be an integer."
if n <= 0
return "n must be greater than 0."
prime = Prime.new
for num in (1..n)
Thank you in advance!!!