Prime Omega Function Calculator
Count the prime factors of an integer with multiplicity, with the distinct count and factorization beside it.
What it does
Big Omega is the function that counts prime factors with multiplicity. The number 12 factors as two times two times three, so Omega(12) is three. The number 30 factors as two times three times five, so Omega(30) is also three, even though 30 has three distinct primes and 12 has only two.
The notation uses a capital Greek omega to distinguish the function from small omega, which counts distinct primes only. Together the two functions describe the shape of a factorization in one number each, and their difference tells how many repeats occur.
The function is additive rather than multiplicative in the strict sense: Omega of a product equals Omega of each factor added together. That makes it straightforward to compute from a factorization, since the exponents simply add.
This page factors the input, sums the exponents and reports both Omega and the distinct prime count. The factorization is printed beside them so the result can be checked without any hidden steps.
The input limit is one trillion, which keeps browser factoring fast. Every result is a small nonnegative integer with no unit attached.
How to use
- Enter a whole number n from 1 upward.
- Read Omega(n) from the main result box.
- Check the distinct prime count beside it.
- Compare the two numbers to see how many repeats there are.
- The default n = 12 reproduces the worked example.
- Try n = 36 to see a number with two distinct primes and four total factors.
Formula
- n
- The positive integer being factored.
- a_i
- The exponent of the ith prime in the factorization.
- Omega(n)
- The total number of prime factors counted with multiplicity.
The case n = 1 has an empty factorization, so Omega(1) = 0. A prime has Omega equal to one, and a prime power p^a has Omega equal to a. The difference between Omega and small omega is the number of repeated prime occurrences.
Worked example
Example: Omega(12)
The page opens with n = 12.
- Factor 12 into 2^2 x 3^1.
- Read the exponents: 2 for the prime 2 and 1 for the prime 3.
- Add them: Omega(12) = 2 + 1 = 3.
- Count distinct primes: only 2 and 3, so small omega is 2.
- The tool reports big Omega 3, distinct primes 2, and factorization 2^2 x 3.
- For 30 the two counts are both 3, because no prime repeats.
- For 36 the factorization is 2^2 x 3^2, giving Omega 4 and small omega 2.
Reference table
| n | Factorization | Omega(n) | omega(n) |
|---|---|---|---|
| 1 | none | 0 | 0 |
| 4 | 2^2 | 2 | 1 |
| 8 | 2^3 | 3 | 1 |
| 12 | 2^2 x 3 | 3 | 2 |
| 30 | 2 x 3 x 5 | 3 | 3 |
| 36 | 2^2 x 3^2 | 4 | 2 |
Limits
- Only positive integers are accepted.
- Inputs above one trillion are rejected to keep factoring quick.
- The tool returns counts, not the list of prime occurrences.
- The distinct count is provided for comparison, not computed by a separate engine.
Common mistakes
- Counting distinct primes instead of all occurrences.
- Forgetting that Omega(1) is zero.
- Treating the exponent of a prime as a multiplier of the prime value.
- Assuming Omega is multiplicative over coprime inputs; it is additive.
- Confusing capital Omega with small omega throughout a problem.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is Omega(36)?
36 = 2^2 x 3^2, so Omega(36) = 2 + 2 = 4 while small omega is 2.
What is Omega(30)?
30 = 2 x 3 x 5, so Omega(30) = 3.
What is Omega(12)?
12 = 2^2 x 3, so Omega(12) = 2 + 1 = 3.
Questions
What does with multiplicity mean?
A prime that appears twice is counted twice, so 2 squared contributes two to the total.
How is Omega different from omega?
Omega counts all occurrences, while small omega counts each distinct prime once.
What is Omega of a prime power?
For p to the power a, Omega is simply a.
Is Omega additive?
Yes. Omega of a product equals the sum of the Omegas of the factors.
Where does the function appear?
In the Liouville function and in estimates about the number of prime factors of typical integers.
What input range works here?
Whole numbers from 1 through 1,000,000,000,000.