Generating Prime Numbers with succ
require 'mathn' primes = Prime.new primes.succ # => 2 primes.succ # => 3