Arithmetic on the numbers you type
Find the greatest common divisor and least common multiple
Both results use integer arithmetic, so a very long integer stays exact.
The sign is ignored for the divisor. The multiple is non-negative.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
GCD and LCM
The sample is fixed. It uses the same rule as the form.
- Left
- 12
- Right
- 18
- GCD
- 6
- LCM
- 36
How to use it
- 1Fill in the fields.
- 2Read the result.
- 3Copy the line you need.
Good to know
- Decimals are rejected.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Decimals are rejected.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Reduce two integers to a ratio
Both numbers are divided by their greatest common divisor.
- Find a remainder
The page shows the remainder with the sign of the dividend, and a non-negative remainder.
- Check whether an integer is prime
The page tests divisibility up to the square root.