Almost prime 2026-11-05
An almost prime is a positive integer with few prime factors, counted with multiplicity. WriteA common convention calls a -almost prime when ; sieve notation often instead means . The convention must therefore be stated. For example, has three prime factors with multiplicity, whereas has two. The number has .
This is a natural output of sieve theory. If and every prime factor of is at least , then , hence . Removing sufficiently small prime factors therefore produces almost primes even when proving primality is out of reach. The parity problem in sieve theory explains a major obstruction to upgrading such results to prime values. [ref]
Some sieve theory by Terence Tao (254A Notes 4). Introduction and applications following Corollary 19
Almost-primes from an upper-bound sieve and Buchstab identity Created 2026-09-28 Updated 2026-11-05
Let be a product of fixed pairwise nonproportional linear polynomials with positive integer leading coefficients. Assume admissibility: no prime number divides for every integer . There are constants such that, for all large , at least values have no prime factor of below . These are almost prime values with a bounded total number of prime factors, counted with multiplicity.
A rigorous positive count needs a lower-bound sieve input, obtainable from the fundamental lemma of sieve theory. If counts roots modulo squarefree , then the polynomial root density in a sieve gives . Take distribution level and sifting limit . The total remainder up to is , while Mertens' theorems give . Choosing sufficiently small makes the main-term error in the fundamental lemma of sieve theory less than half the main term, proving the lower count.[ref]
Some sieve theory by Terence Tao (254A Notes 4). Corollary 19; equation (26) and Corollary 21 illustrate the two-linear-form case
Since , each surviving nonzero value has at most prime factors, with multiplicity. The Buchstab identity organizes the removal of successive prime factors, and upper-bound sieves control removed terms; merely observing convergence of a prime tail does not establish that its subtraction leaves a positive main term.
Fundamental lemma of sieve theory 2026-11-05
The fundamental lemma of sieve theory says that upper and lower sieve theory estimates approach the expected local-density product when the available distribution level is a sufficiently large power of the sifting limit. One formulation uses a finite set of positive integers andHere ranges over squarefree integers up to , is multiplicative with , and the local densities satisfy a fixed-dimension boundThen a standard version yieldsThe fundamental lemma of sieve theory is useful only after both errors are controlled: large reduces the relative main-term error, while the summed remainders measure the actual arithmetic distribution. It then guarantees survivors, often almost primes, without claiming they are prime.[ref]
Some sieve theory by Terence Tao (254A Notes 4). Equation (22), Lemma 17 and Corollary 19; endpoint convention uses primes below z
Sieve theory Created 2026-09-24 Updated 2026-11-05
Sieve theory estimates the number or total weight of integers that avoid specified residue classes modulo prime numbers. The sifting function records what survives. Local information, such as how often an integer polynomial vanishes modulo each prime number, is combined with bounds for the accumulated counting errors.
For example, among the positive integers at most , deleting multiples of , , and leaves . The Chinese remainder theorem predicts a survival density over a full period of length . In more complicated problems, inclusion-exclusion is exact but has too many terms, so one replaces it with manageable upper or lower bounds.
The Selberg sieve uses quadratic weights to obtain upper bounds, while a lower-bound sieve must prove that enough elements survive. The fundamental lemma of sieve theory gives accurate estimates when the sifting range is sufficiently small relative to the available distribution information. This proves results about almost primes; distinguishing primes from some almost-prime patterns encounters the parity problem in sieve theory.[ref]
By Terence Tao.
Corollary 19 states the fundamental lemma of sieve theory with a summed remainder; equations (26) and Corollary 21 apply it to simultaneous almost prime values. The opening definitions and the quadratic-weight construction describe sieve theory and the Selberg sieve.