Crates.io | prime-rs |
lib.rs | prime-rs |
version | 0.1.1 |
source | src |
created_at | 2022-03-19 17:27:13.652326 |
updated_at | 2022-04-21 17:53:00.456646 |
description | Command line utilities for finding prime numbers |
homepage | |
repository | https://github.com/babymotte/shanksbot-rs.git |
max_upload_size | |
id | 553252 |
size | 8,824 |
Command line utilities to find prime numbers.
nprime [number]
finds the next prime number starting at the given argument, pprime [number]
finds the previous prime number to the given argument.
You'll need to have a rust toolchain installed. If you don't need the source code you can simply run cargo install prime-rs
.
If you prefer running it straight from source code, clone the repository, cd
into the project directory and run cargo run --bin nprime 60017
or cargo run --bin pprime 60017
. The result will be printed to stdout
.