Type two or more whole numbers to get their HCF (highest common factor, also called GCD) and LCM (least common multiple), along with the prime factorisation of each number, the way it is taught in Class 6 and Class 10.
2 to 20 whole numbers, separated by commas, spaces or new lines
HCF (GCD)
6
Highest Common Factor
LCM
72
Least Common Multiple
Prime factorisation
| Number | Prime factors |
|---|---|
| 12 | 2^2 × 3 |
| 18 | 2 × 3^2 |
| 24 | 2^3 × 3 |
HCF: multiply the primes common to every number, each at its lowest power. LCM: multiply every prime that appears, each at its highest power.
HCF (GCD) and LCM of 2 to 20 numbers
Prime factorisation of each number
Co-prime check
HCF × LCM = product check for two numbers
Works with numbers up to 1 lakh crore (10¹²)
Check HCF and LCM answers and the prime factorisation steps.
Find the lowest common denominator before adding fractions.
When will buses every 12, 18 and 24 minutes leave together again? After the LCM: 72 minutes.
The HCF is found with Euclid's division algorithm (divide, keep the remainder, repeat until the remainder is 0), which is fast even for very large numbers. The LCM of two numbers is a × b ÷ HCF(a, b), applied one number at a time for longer lists. The prime factors are shown in power form, so 360 appears as 2^3 × 3^2 × 5.
More maths tools: Fraction Calculator, Roman Numeral Converter, Statistics Calculator.
Fraction Calculator
Add, subtract, multiply and divide fractions and mixed numbers, in lowest terms with the working
Roman Numeral Converter
Numbers 1 to 3999 to Roman numerals and back
Statistics Calculator
Mean, median, mode, range, quartiles, and sample and population standard deviation from a list of numbers
Prime Number Checker
Is it prime? Prime factorisation, number of divisors, next and previous prime, primes in a range
Modulo Calculator
a mod n, remainder and quotient, for negative numbers too
GST Calculator
Calculate GST amounts
TDS Calculator
Calculate TDS deductions
Discount Calculator
Calculate discounts and final price
Tip Calculator
Tip amount, total and each person's share, with round-up
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.