Class: Primegen::Utility
- Inherits:
-
Thor
- Object
- Thor
- Primegen::Utility
- Defined in:
- lib/primegen.rb
Instance Method Summary collapse
Instance Method Details
#print ⇒ Object
12 13 14 15 16 17 |
# File 'lib/primegen.rb', line 12 def print() n = [: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 |