is_prime


is_prime, a C code which determines if a given integer n is prime, using various versions of the sieve of Eratosthenes.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

is_prime 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 and an R version.

Related Data and Programs:

is_prime_test

i4lib, a MATLAB code which contains many utility routines, using integer arithmetic.

polpak, a MATLAB 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.

Source Code:


Last modified on 28 December 2022.