PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: Very low
least prime factor (Definition)

The least prime factor of a positive integer $ n$ is the smallest positive prime number dividing $ n$. Sometimes expressed as a function, $ \textrm{lpf}(n)$. For example, $ \textrm{lpf}(91) = 7$. For a prime number $ p$, clearly $ \textrm{lpf}(p) = p$, while for any composite number (except squares of primes) $ (\textrm{lpf}(n))^2 < n$. (The function would be quite useless if 1 is considered a prime, therefore $ \textrm{lpf}(1)$ is undefined -- though we could make an argument for $ \textrm{lpf}(0) = 2$). In the sequence of least prime factors for each integer in turn, each prime occurs first at the index for itself then not again until its square.

In Mathematica, one can use LeastPrimeFactor[n] after loading a number theory package, or much more simply by using the command FactorInteger[n][[1,1]] (of course substituting n as necessary).



"least prime factor" is owned by PrimeFan.
(view preamble)

View style:

Log in to rate this entry.
(view current ratings)

Cross-references: necessary, number theory, Mathematica, index, sequence, argument, squares, composite number, function, prime number, integer, positive
There are 8 references to this entry.

This is version 2 of least prime factor, born on 2007-12-05, modified 2007-12-06.
Object id is 10104, canonical name is LeastPrimeFactor.
Accessed 311 times total.

Classification:
AMS MSC11A51 (Number theory :: Elementary number theory :: Factorization; primality)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)