prime_pi, a C code which evaluates Pi(n), the number of primes less than or equal to an integer n.
The information on this web page is distributed under the MIT license.
prime_pi is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
i4lib, a C code which contains many utility routines, using integer arithmetic.
is_prime, a C code which implements various versions of the sieve of Eratosthenes to determine whether a given integer is prime.
polpak, a C code which evaluates a variety of mathematical functions, polynomials, and sequences, including Bell, Benford, Bernoulli, Bernstein, Cardan, Catalan, Charlier, Chebyshev, Collatz, Delannoy, Euler, Fibonacci, Gegenbauer, Gudermannian, Harmonic, Hermite, Hofstadter, Jacobi, Krawtchouk, Laguerre, Lambert, Legendre, Lerch, Meixner, Mertens, Moebius, Motzkin, Phi, Stirling, Tau, Tribonacci, Zernike.