title: How to find the sum of all prime numbers less than 1000 in Ruby?
body: <p>I am new to Ruby. I want to know how to get the sum of all prime numbers below 1000. Code below prints out all the prime numbers between 1 to 1000. </p>
  
  <pre><code>require 'prime'
  
  p = Prime.new
  (1..1000).each do |n|
    q = p.next()
    puts "#{n}: #{q}" 
  end
  </code></pre>
  
  <p>How do I find the sum of those prime numbers. Appreciate your help</p>