A number
with prime factorization
is called -almost
prime if it has a sum of exponents
,
i.e., when the prime factor (multiprimality) function
.
The set of -almost
primes is denoted
.
The primes correspond to the "1-almost prime" numbers and the 2-almost prime numbers correspond to semiprimes. Conway et al. (2008) propose calling these numbers primes, biprimes, triprimes, and so on.
Formulas for the number of -almost
primes less than or equal to
are given by
and so on, where
is the prime counting function and
is the
th prime (R. G. Wilson V, pers. comm., Feb. 7,
2006; the first of which was discovered independently by E. Noel and G. Panos
around Jan. 2005, pers. comm., Jun. 13, 2006).
The following table summarizes the first few -almost primes for small
.
| OEIS | ||
| 1 | A000040 | 2, 3, 5, 7, 11, 13, ... |
| 2 | A001358 | 4, 6, 9, 10, 14, 15, 21, 22, ... |
| 3 | A014612 | 8, 12, 18, 20, 27, 28, 30, 42, 44, 45, 50, 52, ... |
| 4 | A014613 | 16, 24, 36, 40, 54, 56, 60, 81, 84, 88, 90, 100, ... |
| 5 | A014614 | 32, 48, 72, 80, 108, 112, 120, 162, 168, 176, 180, ... |
Let enumerate the positive integers with at most two prime
factors, counted with multiplicity. The sequence
consists of 1, the primes, and the semiprimes.
It begins 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, ... (OEIS A037143).
Erdős asked whether the supremum limit of
is infinite. Eberwein
(2026) proved the result by a short-translate construction. A separate proof found
using GPT-6.2-sol and submitted by Lee (2026) was checked in Lean by the Palomar
Registry.