smallfactor
Smallfactor is a term used in number theory and computational mathematics to refer to the smallest nontrivial factor of a positive integer, equivalently its smallest prime factor. In many contexts, smallfactor serves as a preprocessing step in integer factorization, where extracting small prime factors can simplify subsequent algorithms such as elliptic curve factorization (ECM) or Pollard's rho.
Computing the smallfactor of a number n typically begins with a quick check for small primes, often
In practice, removing small factors can dramatically reduce the difficulty of factorization, since many integers have
Variations and related concepts include bounded trial division, where factors up to a fixed bound B are