TOPICS
Search

Greatest Prime Factor


GreatestPrimeFactor

The greatest prime factor gpf(n) of an integer n>=2 is the largest prime factor of n. Thus gpf(n)=p_k in the prime factorization

 n=p_1^(a_1)...p_k^(a_k),

where p_1<...<p_k and the a_i are positive integers. For n=2, 3, ..., the first few values are 2, 3, 2, 5, 3, 7, 2, 3, 5, 11, 3, 13, 7, 5, ... (OEIS A006530). The greatest repeated prime factors, meaning the largest primes whose squares divide n, for squareful integers are 2, 2, 3, 2, 2, 3, 2, 2, 5, 3, 2, 2, 3, ... (OEIS A046028).

GreatestPrimeFactorRough

The integers n>=2 for which gpf(n)>sqrt(n) are precisely those that are not sqrt(n)-smooth. They begin 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 20, 21, ... (OEIS A064052). Their natural density is ln2 (Schroeppel 1972).

The "unusual numbers" of Greene and Knuth (1990) use the weak condition gpf(n)>=sqrt(n) and begin 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, ... (OEIS A063538). The two conditions differ exactly at the squares of prime numbers. Finch (2001) also used "sqrt(n)-rough" for unusual numbers. This use differs from the definition of a rough number, which constrains every prime factor rather than only the greatest one.

The complementary sqrt(n)-smooth numbers, also called "round numbers," begin 1, 4, 8, 9, 12, 16, 18, 24, 25, 27, ... (OEIS A048098).


See also

Dickman Function, Distinct Prime Factors, Factor, Golomb-Dickman Constant, Least Common Multiple, Least Prime Factor, Mangoldt Function, Prime Factor, Prime Factorization, Prime Number, Rough Number, Semiprime, Størmer Number, Twin Peaks

Explore with Wolfram|Alpha

References

Erdős, P. and Pomerance, C. "On the Largest Prime Factors of n and n+1." Aequationes Math. 17, 311-321, 1978.Finch, S. "RE: Unusual Numbers." 27 Aug 2001. https://listserv.nodak.edu/cgi-bin/wa.exe?A2=NMBRTHRY;1bd7a1c2.0108.Greene, D. H. and Knuth, D. E. Mathematics for the Analysis of Algorithms, 3rd ed. Boston, MA: Birkhäuser, 1990.Guy, R. K. "The Largest Prime Factor of n." §B46 in Unsolved Problems in Number Theory, 2nd ed. New York: Springer-Verlag, p. 101, 1994.Heath-Brown, D. R. "The Largest Prime Factor of the Integers in an Interval." Sci. China Ser. A 39, 449-476, 1996.Mahler, K. "On the Greatest Prime Factor of ax^m+by^n." Nieuw Arch. Wisk. 1, 113-122, 1953.Schroeppel, R. Item 29 in Beeler, M.; Gosper, R. W.; and Schroeppel, R. HAKMEM. Cambridge, MA: MIT Artificial Intelligence Laboratory, Memo AIM-239, p. 13, Feb. 1972. https://www.inwap.com/pdp10/hbaker/hakmem/number.html#item29.Sloane, N. J. A. Sequences A006530/M0428, A046028, A048098, A063538, and A064052 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Greatest Prime Factor

Cite this as:

Weisstein, Eric W. "Greatest Prime Factor." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GreatestPrimeFactor.html

Subject classifications