Skip to content
Vitaly Tomilov edited this page Oct 11, 2021 · 72 revisions

Choosing the right generator

The library contains 3 generators to choose from, based on your use case. You should also rely on the benchmark performance figures.

  • Default promiseGnenerator() - produces primes from 2 until maxPrime = 9_007_199_254_740_881, which is hypothetically reachable, after running for 10+ years, so it can be considered infinite. This is the most efficient method in terms of memory and CPU usage.

Clone this wiki locally