libprimesieve library

Properties

dartLibraryVersion String
The Dart interface version number, in the form "minor.major".
final
inhibitWarnings bool
Whether to inhibit warnings generated when assigning numThreads or sieveSize with a value which is modified by the underlying library.
read / write
maxStop int
The largest valid stop number for primesieve. [...]
read-only
numThreads int
The number of threads to use in all the functions that generate or enumerate primes. [...]
read / write
sieveSize int
The sieve size in KiB (kibibyte). [...]
read / write
version String
The C/C++ primesieve library version number, in the form “minor.major”.
read-only

Functions

countPrimes(int start, int stop) int
Count the primes within the interval [start, stop]. [...]
countQuadruplets(int start, int stop) int
Count the prime quadruplets within the interval [start, stop]. [...]
countQuintuplets(int start, int stop) int
Count the prime quintuplets within the interval [start, stop]. [...]
countSextuplets(int start, int stop) int
Count the prime sextuplets within the interval [start, stop]. [...]
countTriplets(int start, int stop) int
Count the prime triplets within the interval [start, stop]. [...]
countTwins(int start, int stop) int
Count the prime twins within the interval [start, stop]. [...]
generateNPrimes(int n, int start) List<int>
Return an array with the first n primes >= start. [...]
generatePrimes(int start, int stop) List<int>
Return an array with all the primes in [start, stop]. [...]
nthPrime(int n, int start) int
Find the nth prime beyond start. [...]
printPrimes(int start, int stop) → void
Print the primes within the interval [start, stop]. [...]
printQuadruplets(int start, int stop) → void
Print the prime quadruplets within the interval [start, stop]. [...]
printQuintuplets(int start, int stop) → void
Print the prime quintuplets within the interval [start, stop]. [...]
printSextuplets(int start, int stop) → void
Print the prime sextuplets within the interval [start, stop]. [...]
printTriplets(int start, int stop) → void
Print the prime triplets within the interval [start, stop]. [...]
printTwins(int start, int stop) → void
Print the prime twins within the interval [start, stop]. [...]