{"id":15620459,"url":"https://github.com/nisevi/primes_table","last_synced_at":"2026-01-07T22:42:47.454Z","repository":{"id":48425200,"uuid":"129767907","full_name":"nisevi/primes_table","owner":"nisevi","description":"Command line tool for printing a multiplication table of the first N prime numbers.","archived":false,"fork":false,"pushed_at":"2021-07-27T02:15:03.000Z","size":96,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T16:34:13.107Z","etag":null,"topics":["codeclimate","codecoverage","gem","gems","methadone","multiplication-tables","oop","oop-principles","prime-matrix","prime-numbers","primes","primes-search-algorithm","rspec","ruby","ruby-gem","ruby-gems","ruby-library","semaphoreci","sieve-of-eratosthenes","simplecov"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/primes_table","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nisevi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-16T15:46:17.000Z","updated_at":"2020-07-05T02:31:41.000Z","dependencies_parsed_at":"2022-08-20T16:00:44.986Z","dependency_job_id":null,"html_url":"https://github.com/nisevi/primes_table","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisevi%2Fprimes_table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisevi%2Fprimes_table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisevi%2Fprimes_table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisevi%2Fprimes_table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nisevi","download_url":"https://codeload.github.com/nisevi/primes_table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246207491,"owners_count":20740723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeclimate","codecoverage","gem","gems","methadone","multiplication-tables","oop","oop-principles","prime-matrix","prime-numbers","primes","primes-search-algorithm","rspec","ruby","ruby-gem","ruby-gems","ruby-library","semaphoreci","sieve-of-eratosthenes","simplecov"],"created_at":"2024-10-03T09:01:22.287Z","updated_at":"2026-01-07T22:42:47.409Z","avatar_url":"https://github.com/nisevi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maintainability](https://api.codeclimate.com/v1/badges/76cdbb4e023166cc619d/maintainability)](https://codeclimate.com/github/nisevi/primes_table/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/76cdbb4e023166cc619d/test_coverage)](https://codeclimate.com/github/nisevi/primes_table/test_coverage) [![Build Status](https://semaphoreci.com/api/v1/nisevi/primes_table/branches/master/shields_badge.svg)](https://semaphoreci.com/nisevi/primes_table) [![Gem Version](https://badge.fury.io/rb/primes_table.svg)](https://badge.fury.io/rb/primes_table)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnisevi%2Fprimes_table.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fnisevi%2Fprimes_table?ref=badge_shield)\n\n# PrimesTable\n\nCommand line tool for printing out a multiplication table of the first N prime numbers.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'primes_table'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install primes_table\n\n## Usage\n\n- By default the table will be generated as a matrix of 10X10;\n\n- Only values greater or equal than 10 will be considered for specifying rows or columns;\n\n- If you enter a value minor than 10, it will default to 10;\n\n- Only integer values are considered. For example, if you enter an string, it will be converted to integer, the result will be 0 (zero) and will default to 10 because zero is minor than 10;\n\n- Options:\n    - `-h, --help` to see the available options;\n    - `-r, --rows ROWS` to specify how many rows;\n    - `-c, --columns COLUMNS` to specify how many columns;\n    - `--version` it will give you the version of the gem you are using;\n\n- Command examples:\n    - `primes_table --version`;\n    - `primes_table --help`;\n    - `primes_table`;\n    - `primes_table -r 17`;\n    - `primes_table -c 23`;\n    - `primes_table -r 17 -c 23`;\n\n## Tests\n\n- Rspec:\n    - `bundle exec rspec`\n\n## Development\n\nWhen working on this gem locally, if you want to run it, you just need to:\n\n`$ bundle exec bin/primes_table`\n\nand you will get the default output:\n\n|     |   2  |  3  |   5  |   7  |\n|:---:|:----:|:---:|:----:|:----:|\n|  2  |   4  |  6  |   10 |  14  |\n|  3  |   6  |  9  |   15 |  21  |\n|  5  |  10  | 15  |   25 |  35  |\n|  7  |  14  | 21  |   35 |  49  |\n\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnisevi%2Fprimes_table.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fnisevi%2Fprimes_table?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnisevi%2Fprimes_table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnisevi%2Fprimes_table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnisevi%2Fprimes_table/lists"}