PrimeOmega
✖
PrimeOmega
Details and Options

- Integer mathematical function, suitable for both symbolic and numerical manipulation.
- PrimeOmega gives the number of prime factors of an integer with multiplicity.
- For a number
with
a unit and
primes, PrimeOmega[n] returns k1+⋯+km.
- With the setting GaussianIntegers->True, PrimeOmega gives the number of Gaussian prime factors.
- PrimeOmega[m+In] automatically works over Gaussian integers.

Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Compute PrimeOmega at 30:

https://wolfram.com/xid/0i1m3iaz6-bnjg83

Plot the PrimeOmega sequence for the first 100 numbers:

https://wolfram.com/xid/0i1m3iaz6-hiieto

Scope (8)Survey of the scope of standard use cases
Numerical Evaluation (4)
PrimeOmega works over integers:

https://wolfram.com/xid/0i1m3iaz6-h7ou6e


https://wolfram.com/xid/0i1m3iaz6-k04y6h


https://wolfram.com/xid/0i1m3iaz6-f359qp


https://wolfram.com/xid/0i1m3iaz6-bdyuaq

PrimeOmega threads over lists:

https://wolfram.com/xid/0i1m3iaz6-ccdboa

Symbolic Manipulation (4)
TraditionalForm formatting:

https://wolfram.com/xid/0i1m3iaz6-bkedy5


https://wolfram.com/xid/0i1m3iaz6-5or6fl


https://wolfram.com/xid/0i1m3iaz6-6t6jbk

Identify the PrimeOmega sequence:

https://wolfram.com/xid/0i1m3iaz6-n7lgc3


https://wolfram.com/xid/0i1m3iaz6-nc8uno

Options (1)Common values & functionality for each option
GaussianIntegers (1)
Compute PrimeOmega over integers:

https://wolfram.com/xid/0i1m3iaz6-10e1vr


https://wolfram.com/xid/0i1m3iaz6-s7a4h8

Applications (6)Sample problems that can be solved with this function
Basic Applications (2)
Table of the values of PrimeOmega for the integers up to 100:

https://wolfram.com/xid/0i1m3iaz6-es2o9g

Histogram of the values of PrimeOmega:

https://wolfram.com/xid/0i1m3iaz6-eb7ks0

Number Theory (4)
Use PrimeOmega to test for a prime number:

https://wolfram.com/xid/0i1m3iaz6-ok5wcm

https://wolfram.com/xid/0i1m3iaz6-c8svys


https://wolfram.com/xid/0i1m3iaz6-do9kut

Use PrimeOmega to compute LiouvilleLambda:

https://wolfram.com/xid/0i1m3iaz6-c8c4az


https://wolfram.com/xid/0i1m3iaz6-ljtv55

Plot the average over values of PrimeOmega for different ranges of integer arguments:

https://wolfram.com/xid/0i1m3iaz6-q1qvtp

The Fourier statistics of the PrimeOmega sequence:

https://wolfram.com/xid/0i1m3iaz6-j45sop

Properties & Relations (5)Properties of the function, and connections to other functions
Use FactorInteger to find the number of prime factors counting multiplicities:

https://wolfram.com/xid/0i1m3iaz6-n4k1tb


https://wolfram.com/xid/0i1m3iaz6-j3ychv

PrimeOmega is a completely additive function:

https://wolfram.com/xid/0i1m3iaz6-kpqkx

PrimeOmega gives the exponent for a prime power:

https://wolfram.com/xid/0i1m3iaz6-bdxu78


https://wolfram.com/xid/0i1m3iaz6-d0shx

PrimeOmega and PrimeNu are equivalent when the argument is square-free:

https://wolfram.com/xid/0i1m3iaz6-wahbq


https://wolfram.com/xid/0i1m3iaz6-dvmtii

PrimeOmega is always greater than or equal to PrimeNu:

https://wolfram.com/xid/0i1m3iaz6-e9gw6

Possible Issues (1)Common pitfalls and unexpected behavior
Neat Examples (2)Surprising or curious use cases
Plot the arguments of the Fourier transform of PrimeOmega:

https://wolfram.com/xid/0i1m3iaz6-jeg3fb

Plot the Ulam Spiral of PrimeOmega:

https://wolfram.com/xid/0i1m3iaz6-zp3c6

https://wolfram.com/xid/0i1m3iaz6-qhm0kv

Wolfram Research (2008), PrimeOmega, Wolfram Language function, https://reference.wolfram.com/language/ref/PrimeOmega.html.
Text
Wolfram Research (2008), PrimeOmega, Wolfram Language function, https://reference.wolfram.com/language/ref/PrimeOmega.html.
Wolfram Research (2008), PrimeOmega, Wolfram Language function, https://reference.wolfram.com/language/ref/PrimeOmega.html.
CMS
Wolfram Language. 2008. "PrimeOmega." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PrimeOmega.html.
Wolfram Language. 2008. "PrimeOmega." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PrimeOmega.html.
APA
Wolfram Language. (2008). PrimeOmega. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PrimeOmega.html
Wolfram Language. (2008). PrimeOmega. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PrimeOmega.html
BibTeX
@misc{reference.wolfram_2025_primeomega, author="Wolfram Research", title="{PrimeOmega}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/PrimeOmega.html}", note=[Accessed: 01-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_primeomega, organization={Wolfram Research}, title={PrimeOmega}, year={2008}, url={https://reference.wolfram.com/language/ref/PrimeOmega.html}, note=[Accessed: 01-May-2025
]}