title: "Already initialized constant" warning
body: <p>Here's my code:</p>
  
  <pre><code>puts "Input a number."
  Divisor = 2
  inputNumber = gets.chomp
  if inputNumber.to_i == 1 || inputNumber.to_i == 2
    if inputNumber.to_i == 1
      puts inputNumber + " is not a prime."
    else
      puts inputNumber + " is a prime."
    end
  else
    while Divisor.to_i &lt; inputNumber.to_i
      if inputNumber.to_i%Divisor.to_i == 0
        puts inputNumber + " is not a Prime as " + Divisor.to_s + " is a factor."
        break
      else 
        Divisor = Divisor.to_i + 1
      end
    end
    puts inputNumber + " is a prime!"
  end
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>test1.rb:30: warning: already initialized constant Divisor
  test1.rb:3: warning: previous definition of Divisor was here
  </code></pre>
  
  <p>What is wrong?</p>