Sparkx120 / sparkx_primegen_rust

A prime number generator written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SparkX Primegen

This is a simple prime number generator library / driver written in rust that implements the Sieve of Eratosthenes A flawed segmented option is in the code but not fit for use at this time. The only functioning version of the sieve is sparkx_primegen::generators::sieve_of_eratosthenes(config: &Config)

To setup locally will require an installation of Rust

Configuration

Currently the settings are hardcoded into lib.rs in the Config struct.

Building and Runing

The following will build and run a release build and set the prime number range's upper limit to 1 billion.

cargo run --release -- -e 1000000000

The following will build and run in unoptimized mode and use the default prime number range

cargo run

About

A prime number generator written in Rust


Languages

Language:Rust 100.0%