#prime #numbers

app primeish

A CLI containing various prime number utilities

1 unstable release

0.1.0 Jul 7, 2023

#1959 in Math

Apache-2.0

9KB
128 lines

primeish

various prime utilities in a CLI

cargo install primeish
Usage: primeish <COMMAND>

Commands:
  info      Extract information from a number (factors, prev and next primes.)
  is        Check if a number is prime
  factors   Get the factors of a number
  list      List the first N prime numbers
  nth       Get the nth prime number
  next      Get the next prime number after a given number
  previous  Get the previous prime number before a given number
  closest   Get the closest prime number to a given number
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Dependencies

~1.1–1.7MB
~32K SLoC