require 'primes.rb' p = Primes.new(10) puts p.primes # Output # ------ # 2 # 3 # 5 # 7 # 11 # 13 # 17 # 19 # 23 # 29