class Primegen::Utility
Public Instance Methods
print()
click to toggle source
# 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