require 'optparse'
require 'prime'

maximum = 10
OptionParser.new do |o|
  o.banner = 
  o.on(, Integer,
       ) { |m| maximum = m }
  o.parse! rescue ($stderr.puts $!, o; exit 1)
  ($stderr.puts o; exit 1) unless ARGV.size == 0
end


puts  unless maximum < 1

2.upto(maximum) do |i|
  
  f = i.prime_division.map! do |factor, exponent|
    
    ([factor] * exponent).join 
  end.join 
  puts 
end