Click on a button, input a number and press the purple ☑ (or the enter key)
a Prime number is a number that can only be divided by itself and one. a Number's prime factors are prime numbers that, when multiplied by each other, produce the original number. The greatest common factor (G.C.F) of two numbers, also called the Highest Common Factor, is the biggest factor that both numbers have, in case you couldn't deduce that from its name. The least/lowest common multiple (L.C.M) of two numbers is the smallest number that is a multiple of both those numbers, in case you couldn't deduce that from its name. Although the easiest way to find the G.C.F and L.C.M of two numbers is to break them down into their prime factors and see which factors are common to both those numbers, this project doesn't actually use prime numbers to do either. To find the G.C.F of two numbers, it simply lists the factors of each number in order from largest to smallest and then displays the largest number that is common to both lists. To find the L.C.M, it first finds the G.C.F of the numbers it was given, then multiplies them by each other and divides the product by their G.C.F.