require 'mathn'primes = Prime.newprimes.each { |x| puts x; break if x > 15; }# 5# 7# 11# 13# 17primes.succ # => 19