Class: Primegen::Utility

Inherits:
Thor
  • Object
show all
Defined in:
lib/primegen.rb

Instance Method Summary collapse

Instance Method Details



12
13
14
15
16
17
# File 'lib/primegen.rb', line 12

def print()
	n = options[:n]
	return puts "Creation of multiplication table is not optimized for N > 1000. N should be <= 1000" if n > 1000
	primes = Generator.new(n).run
     puts MultiplicationTable.output(primes, n)
end