PrimeOmega
The number of prime factors of n, counted with multiplicity.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Prime omega functionMathWorldPrimeFactorWikidataQ55630466OEISA001222Wolfram LanguagePrimeOmega✓PrimeOmega(n)number of prime factors of , counted with multiplicity.SageMath
sum(e for _, e in factor(n))SymPyprimeomega(n)Juliaenumeratio_prime_omega(n)Rustprime_omega(n)Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | compute-engine | always |
(number | quadratic_integer, any*) -> integer | number-theoryreplaces compute-engine | always |
Details
- Counts every prime factor with multiplicity -- , unlike PrimeNu's 1.
- Completely additive: for all , not just coprime ones.
- : 1 has no prime factors.
- exactly when is squarefree; otherwise .
Examples
Scope #
Properties #
About
| Examples | 17 |
|---|---|
| Checked against | Wolfram Language 17 agreeSageMath 13 agreeSymPy 12 agree2 errormathlib4 10 agree3 errorJulia 12 agree1 errorRust 11 agree2 error |
| Crosswalk | WikipediaMathWorldWikidataOEISWolfram LanguageSageMathSymPyJuliaRust |
Implementation
mapped
sympypackages/oracle/src/mappings.tsprimeomega counts prime factors with multiplicity of an integer; a Gaussian integer is not one.
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.tsThe number of primes in the factorization, with multiplicity.
mapped
mathlib4packages/oracle/src/mappings.tsArithmeticFunction.cardFactors, Omega(n): prime factors with multiplicity, Omega(0) = 0; natural n only.
See also: PrimeNu, FactorInteger