class Primer::CLI
Public Instance Methods
print(n)
click to toggle source
# File lib/primer.rb, line 10 def print(n) primes = Primer::Generator.new(n: n.to_i).first_primes table = Primer::Table.new(array: primes).strings table.each { |row| puts row } end