#include <prime-stream.h>
Provides a source of prime numbers of given characteristics to use in parts of the library that need to reduce modulo one or more primes.
Public Methods | |
PrimeStream (Integer &start, bool move_up=true) | |
~PrimeStream () | |
Element & | next (Element &a) |
PrimeStream< Element > & | operator>> (Element &a) |
|
Constructor Construct a PrimeStream object.
|
|
|
|
Get the next prime element
|
|
Operator form for getting the next prime element |