Project

primetable

0.0
No commit activity in last 3 years
No release in over 3 years
Displays the products of N primes in a table format. Optionally uses generated primes or precalculated.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0.10.2, ~> 0.10
>= 10.4.2, ~> 10.4
>= 3.4.0, ~> 3.4

Runtime

>= 0.2.5, ~> 0.2
>= 0.12.2, ~> 0.12
 Project Readme

PrimeTable v1.1.4

Prints a multiplication table of N primes to STDOUT

Displays the products of N primes in a table format. Optionally uses generated primes or precalculated.

Installation

gem install primetable

Usage

Usage: primetable [options]

Specific options:
    -f F                             First prime (default is 2, limit is 2000003 w/ -m load|fast, 9007199254740727 w/ -m calc)
    -n N                             Number of primes for which you wish to generate a table
    -m, --method METHOD              Select method of generating primes (fast|load|calc)** (default is 'calc')
    -t, --time                       Display run time

Common options:
    -h, --help                       Show this message
    -v, --version                    Show version

** NOTE: The (so-called) 'fast' and 'load' prime methods are DEPRECATED. Use the default or -m 'calc'.

Status

Test Coverage Build Status