This is a simple program that calculates and prints out a multiplication table of the first 10 calculated prime numbers. It uses Eratosthenes sieve to get primes and displays output in a nicely formatted table.
$ bundle install
$ ruby prime_products.rb
You can test each class using Minitest.
$ ruby test/multiplication_table_spec.rb $ ruby test/table_spec.rb $ ruby test/prime_generator_spec.rb
Copyright © 2013 Piotr Brudny.