Lehmer prime-counting algorithm 2026-10-20
Linear sieve 2026-10-20
A number-theoretic sieve that visits each composite number exactly once, through its smallest prime factor. Keep a growing list of prime numbers; for each , generate only for stored primes . Each composite has a unique representation admitted by this rule, giving arithmetic updates up to .
Polynomial sieve Created 2026-10-20 Updated 2026-11-05
A polynomial sieve enumerates irreducible polynomials by marking polynomials divisible by smaller irreducible polynomials, analogously to a number-theoretic sieve. Over a finite field , there are only monic polynomials of each polynomial degree , so one can sieve all monic polynomials through a prescribed degree .
Process monic polynomials in increasing polynomial degree. Each unmarked nonconstant polynomial is irreducible; mark its monic polynomial multiples through degree . Every reducible polynomial of degree at most has an irreducible polynomial factor of degree at most , so these factors suffice. For example, over the field with two elements, the degree-one factors and mark , and . The remaining monic quadratic is irreducible. This gives small defining polynomials for constructing finite fields as quotient rings.
Prime counting 2026-10-20
Prime counting evaluates the prime-counting function: it determines how many prime numbers do not exceed a given bound. A number-theoretic sieve can construct the whole table up to a moderate bound, while methods such as the Lehmer prime-counting algorithm group whole classes of integers to evaluate much larger arguments without listing every prime number.
Prime-counting function Created 2026-09-24 Updated 2026-11-05
The prime-counting function counts the prime numbers not exceeding a real bound :Thus , and . It is a nondecreasing step function with a jump of one at each prime number, and for .
Computing one large value is different from listing every prime number below it. A number-theoretic sieve can do both up to a moderate bound; Legendre prime-counting formula and the Lehmer prime-counting algorithm instead organize counts of allowable factors. The Prime number theorem describes the long-term scale , rather than exact individual jump locations.
Prime sieve 2026-10-20
A number-theoretic sieve used to enumerate prime numbers by excluding composite numbers. The sieve of Eratosthenes marks multiples of each discovered prime, beginning at its square.
Segmented sieve 2026-10-20