Double factorial and primorial

Niels Möller nisse at
Wed Dec 21 10:56:35 CET 2011

bodrato at writes:

> It is hard to decide what a public interface should give as a result:
> a list of primes?

The simplest and *general* interface I can come up with takes a range as
input, and a callback function. And then that callback function is
invoked for each prime in the interval. Could perhaps also return the
number of primes in the interval, and allow a NULL callback.


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list