linbox
|
Prime number stream. More...
#include <prime-stream.h>
Public Member Functions | |
PrimeStream (Integer &start, bool move_up=true) | |
Constructor. More... | |
Element & | next (Element &a) |
Get the next prime element. More... | |
PrimeStream< Element > & | operator>> (Element &a) |
Operator form for getting the next prime element. | |
Prime number stream.
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.
|
inline |
Constructor.
Construct a PrimeStream object.
start | Starting point; need not be prime itself |
move_up | true if we should move up from the starting point, false otherwise |
|
inline |
Get the next prime element.
a | Place to store the next prime element |