Least Common Factor Calculator

Smallest shared factor, computed precisely, for multiple numbers instantly. Show steps, prime checks, and complete common divisors lists. Exclude one or choose prime-only definitions when needed too. Batch inputs, reusable links, CSV and PDF exports. Clean interface with white theme for classroom and work.

Inputs

Tip: Excluding 1 yields a more informative result for most sets.

Example data

Numbers Mode LCF GCD Notes
8, 12, 20Exclude 124Smallest factor >1 is 2
15, 25, 35Exclude 155GCD=5, smallest prime factor=5
7, 9, 20Exclude 11No common factor >1
14, 28, 42Prime‑only214Smallest prime dividing GCD
14, 28, 42Include 1114By definition including 1

Results

Enter your numbers and choose a definition to compute results.

Formula used

Let the input set be integers \(a_1, a_2, \dots, a_n\) and \(g=\gcd(a_1,\dots,a_n)\).

  • Include 1: the least common factor (LCF) is 1.
  • Exclude 1: if \(g<2\), no common factor >1 exists; otherwise LCF \(=\operatorname{spf}(g)\), the smallest prime factor of \(g\).
  • Prime‑only: LCF is the smallest prime dividing every input, i.e., \(\operatorname{spf}(g)\).

All common factors of the inputs are exactly the positive divisors of \(g\).

How to use this calculator

  1. Type two or more integers separated by commas or spaces.
  2. Choose whether to include 1, exclude 1, or restrict to primes.
  3. Select Compute to see the LCF, GCD, factors, and steps.
  4. Use Export CSV or Export PDF to save results.

Least Common Factor vs Least Common Multiple

The least common factor (LCF) is the smallest positive number that divides every input. The least common multiple (LCM) is the smallest positive number that is divisible by all inputs. This tool computes LCF, not LCM.

ConceptDefinitionExample for (8, 12, 20)
LCFSmallest shared divisor2
LCMSmallest shared multiple120

Edge cases and input rules

  • Zeros: If all values are 0, common factors are undefined.
  • Ones: Including 1 forces LCF to be 1 by definition.
  • Negatives: Signs are ignored; only magnitudes matter for factors.
  • Primes: If the GCD is prime, that prime is the LCF (exclude‑1).
  • No common factor > 1: When GCD = 1, the LCF (exclude‑1) does not exist.

Applications and quick examples

LCF is useful for spotting minimal shared structure across integers.

  • Simplifying ratios by shared factors: If LCF > 1, the set shares a basic unit.
  • Quality checks in datasets: Detect when numbers accidentally share a non‑trivial divisor.
  • Number theory practice: Train factoring skills via prime breakdowns and GCDs.

Related Calculators

Inverse Function Finder CalculatorPolynomial Long Division Calculatorroots of cubic equation calculatorquadratic function from 3 points calculatorWeighted linear regression calculatorremainder and factor theorem calculatordivide using long division calculatorsynthetic division remainder calculatorLCM fraction Calculatorfactor polynomials by grouping calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.