number-theory implementations of number theory algorithms in C Implemented a segmented sieve of Eratosthenes which takes O(n(lg n)(lg lg n)) time and occupies O(sqrt(n)) space. Implemented a centered Euclidean algorithm for computing the gcd of 2 numbers.