Fast Prime Gen
A NodeJS/JavaScript package to generate prime numbers fast and efficiently
Overview
Fast Prime Gen generates prime numbers procedurally on the fly. Instead of using a pre-generated list, this tool will spit out the next prime number using an algorithm based on Vladmir Agafonkin's work.
How To Use
Install the Package
npm install fast-prime-gen
Examples
Initialize the Generator
const PostponedSieve = ; const generator = ;
Run the generator one time
console;
Run the generator multiple times
console;
Skip entries
console;