Prime Omega Function Calculator

Count the prime factors of an integer with multiplicity, with the distinct count and factorization beside it.

Math and PercentUpdated 2026-11-182 min read
Prime Omega Function Calculator
A whole number from 1 to 1,000,000,000,000.
Big Omega Omega(n)
...
Distinct prime factors...
Prime factorization...

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

  1. Enter a whole number n from 1 upward.
  2. Read Omega(n) from the main result box.
  3. Check the distinct prime count beside it.
  4. Compare the two numbers to see how many repeats there are.
  5. The default n = 12 reproduces the worked example.
  6. Try n = 36 to see a number with two distinct primes and four total factors.

Formula

Omega(n) = a1 + a2 + ... + ar when n = p1^a1 x p2^a2 x ... x pr^ar
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.

  1. Factor 12 into 2^2 x 3^1.
  2. Read the exponents: 2 for the prime 2 and 1 for the prime 3.
  3. Add them: Omega(12) = 2 + 1 = 3.
  4. Count distinct primes: only 2 and 3, so small omega is 2.
  5. The tool reports big Omega 3, distinct primes 2, and factorization 2^2 x 3.
  6. For 30 the two counts are both 3, because no prime repeats.
  7. For 36 the factorization is 2^2 x 3^2, giving Omega 4 and small omega 2.

Reference table

Omega and small omega for sample integers
nFactorizationOmega(n)omega(n)
1none00
42^221
82^331
122^2 x 332
302 x 3 x 533
362^2 x 3^242

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.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.