title: Ruby Each Statement gets stuck on while loop
body: <p>New to StackOverflow here. I'm working on the first Euler problem and have run into an issue where I can get the statement to iterate through the array. It seems like it has something to do with the way I have the while loop setup but I can't figure it out.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>#euler problem 1
  
  numbers = [3,5]
  sum = 0
  i=1
  total=0
  
  numbers.each do |number|
    while i * number &lt; 10
      adder = i * number
      total += adder
      i += 1
      puts total
    end
  end
  
  puts total
  </code></pre>
  
  <p>The output is 3
  9
  18
  18</p>
  
  <p>Any idea why it isn't processing the 5 in the array numbers?</p>