/Primes-Multiplication-Table

Prints a multiplication table for prime numbers.

Primary LanguageRuby

Primes Multiplication Table

codebeat badge Build Status


Purpose

This programs prints a multiplication table for prime numbers. The default is to print the multiplication table for the first 10 prime numbers. You may pass in an options argument '--c' to change the number of prime numbers

Usage

From the root of the project

To run with default
 ruby app.rb

To run for with a custom number, n, of primes

  ruby app.rb --c n

Testing

From the root of the project

  bundle install
  rspec spec/