Prime factor

From Wikipedia, the free encyclopedia
  (Redirected from Prime factors)
Jump to: navigation, search
This image demonstrates how to find the prime factorization of 864. A shorthand way of writing the resulting prime factors is 25 × 33

In number theory, the prime factors of a positive integer are the prime numbers that divide that integer exactly.[1] The prime factorization of a positive integer is a list of the integer's prime factors, together with their multiplicities; the process of determining these factors is called integer factorization. The fundamental theorem of arithmetic says that every positive integer has a single unique prime factorization.[2]

To shorten prime factorizations, factors are often expressed in powers (multiplicities). For example,

in which the factors 2, 3 and 5 have multiplicities of 3, 2 and 1, respectively.

For a prime factor p of n, the multiplicity of p is the largest exponent a for which pa divides n exactly.

For a positive integer n, the number of prime factors of n and the sum of the prime factors of n (not counting multiplicity) are examples of arithmetic functions of n that are additive but not completely additive.[3]

Perfect squares[edit]

Perfect square numbers can be recognized by the fact that all of their prime factors have even multiplicities. For example, the number 144 (the square of 12) has the prime factors

These can be rearranged to make the pattern more visible:

Because every prime factor appears an even number of times, the original number can be expressed as the square of some smaller number. In the same way, perfect cube numbers will have prime factors whose multiplicities are multiples of three, and so on.

Coprime integers[edit]

Positive integers with no prime factors in common are said to be coprime. Two integers a and b can also be defined as coprime if their greatest common divisor gcd(ab) = 1. Euclid's algorithm can be used to determine whether two integers are coprime without knowing their prime factors; the algorithm runs in a time that is polynomial in the number of digits involved.

The integer 1 is coprime to every positive integer, including itself. This is because it has no prime factors; it is the empty product. This implies that gcd(1, b) = 1 for any b ≥ 1.

Cryptographic applications[edit]

Determining the prime factors of a number is an example of a problem frequently used to ensure cryptographic security in encryption systems;[4] this problem is believed to require super-polynomial time in the number of digits — it is relatively easy to construct a problem that would take longer than the known age of the universe to solve on current computers using current algorithms.

Omega functions[edit]

The function, ω(n) (small omega), represents the number of distinct prime factors of n, while the function, Ω(n) (big omega), represents the number of prime factors of n counted by multiplicities.[2] If


For example, 24 = 23 × 31, so ω(24) = 2 and Ω(24) = 3 + 1 = 4.

  • ω(n) for n = 1, 2, 3, … is respectively 0, 1, 1, 1, 1, 2, 1, 1, 1, … (sequence A001221 in the OEIS).
  • Ω(n) for n = 1, 2, 3, … is respectively 0, 1, 1, 2, 1, 2, 1, 3, 2, … (sequence A001222 in the OEIS).

See also[edit]


  1. ^ Jensen, Gary R. (2004). Arithmetic for Teachers: With Applications and Topics from Geometry. American Mathematical Society. 
  2. ^ a b Riesel, Hans (1994), Prime numbers and computer methods for factorization, Basel, Switzerland: Birkhäuser, ISBN 978-0-8176-3743-9 
  3. ^ Melvyn B. Nathanson (1996). Additive Number Theory: the Classical Bases. Graduate Texts in Mathematics. 234. Springer-Verlag. ISBN 0-387-94656-X. 
  4. ^ Menezes, Alfred; van Oorschot, Paul C.; Vanstone, Scott A. (October 1996). Handbook of Applied Cryptography. CRC Press. ISBN 0-8493-8523-7.