https://github.com/tompave/prime_numbers
just an exercise
https://github.com/tompave/prime_numbers
Last synced: about 1 year ago
JSON representation
just an exercise
- Host: GitHub
- URL: https://github.com/tompave/prime_numbers
- Owner: tompave
- License: mit
- Created: 2015-05-20T01:41:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T16:59:36.000Z (about 11 years ago)
- Last Synced: 2025-02-01T08:41:45.706Z (over 1 year ago)
- Language: Ruby
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PrimeNumbers
A simple CLI utility that prints a table of multiplication products between prime numbers.
## Usage
```
prime_numbers --count 10
prime_numbers --help
```
## Installation
This utility is provided as a gem, but is not published on [rubygems.org](https://rubygems.org/).
To install it:
```
# get the code
git clone git@github.com:tompave/prime_numbers.git
# build the gem
cd prime_numbers
git checkout tags/v1.0.0
gem build prime_numbers.gemspec
# install the gem from the local gem archive file
gem install prime_numbers-1.0.0.gem
```
## Tests
```
rake test
```
Tested with Ruby MRI 2.0.0 and above.