Integer Factors, GCD and LCM
Prime-factor integers and find their greatest common divisor and least common multiple.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Enter positive integers separated by commas or whitespace.
- Calculate prime factors, the shared divisor and the common multiple.
Things to know
- At most 20 integers, each no larger than 10^12. Calculations use exact integer arithmetic.
- At most 20 positive integers up to 10^12. Tokens are checked before BigInt construction; trial division tests at most approximately 500,000 divisors per value and checks cancellation. GCD/LCM do not enumerate factor combinations.
- Use no more than 200,000 characters across the input and settings.
You might also need
More in maths & scienceRandom number generator
Generate random whole numbers between inclusive limits, with no-repeat and sorting options and a CSV download.
Percentage difference calculator
Compare two non-negative values using their average, with the absolute difference and formula shown.
Quadratic Equation Calculator
Find real or complex roots of ax squared plus bx plus c equals zero.
Percentage Calculator
Calculate a percentage of a value, a percentage change, or the original before a percentage increase.
Coordinate Format Converter
Convert latitude and longitude between decimal degrees and degrees/minutes/seconds.
Descriptive Statistics Calculator
Calculate mean, median, modes, quartiles, range and standard deviation for a numeric sample.
Fraction Calculator
Add, subtract, multiply or divide fractions exactly and simplify the result.
Matrix Calculator
Add or multiply matrices, or calculate a transpose, determinant or inverse.
Ohm's Law Calculator
Calculate voltage, current, resistance and power from two known electrical quantities.