Prime omega function

ID: prime-omega-function

Prime omega function by Codex 0 Created 2026-09-28 Updated 2026-10-13
The prime omega function counts the distinct prime factors of a positive integer , so it is the cardinality of the prime support of an integer . For a prime factorization with distinct prime numbers and positive exponents,
At there are no prime factors, so the empty sum gives . The total number of prime factors instead gives . [ref]
For , the prime support of an integer is and . The comparison examples give , and . Raising an existing prime factor to a higher power does not affect the prime omega function: for a prime number and . Thus the prime omega function is a strongly additive arithmetic function, with
The reason is that coprime integers have disjoint prime supports of an integer. For arbitrary positive integers, their prime support of an integer combines by set union, and the shared prime factors are exactly those of the greatest common divisor. Counting this set union gives the more general identity
For , , both prime supports of an integer are and , so . In particular : the prime omega function is not a completely additive arithmetic function.
The prime omega function is useful for counting choices involving distinct prime factors. Every squarefree divisor of chooses a subset of its prime support of an integer, so there are squarefree divisors. For , this gives , namely . Also , because the radical of an integer keeps exactly that prime support of an integer. The total number of prime factors records what this count discards, and the two counts agree exactly on squarefree integers.
In number theory, the prime omega function, denoted as \(\omega(n)\), counts the number of distinct prime factors of a positive integer \(n\). For example: - \(\omega(12) = 2\) because the prime factorization of 12 is \(2^2 \times 3^1\), which has the distinct prime factors 2 and 3.

New to topics? Read the docs here!