You might use the array to store the results, since a number may be made up of several prime factors. As soon as you find a prime factor, save the result to the array, and continue looking for additional factors. If you want all factors, not just prime factors, the principle is the same; you can store the results of your calculations to an array.
Chat with our AI personalities
Factors OR multiplicands.
1363
To find the LCM of numbers you first need to break them down into their prime factors. In this case: 27=3x3x3 45=5x3x3 81=3x3x3x3 The next step is to disregard any duplicates when there are common prime factors. All numbers use two 3s so we can disregard 4 of them. Two numbers use an additional 3 so we can disregard 1 of them. This leaves us with: 5,3,3,3,3 Find the product of all of these numbers: 5x3x3x3=405 And that gives us the LCM. So the LCM of 27, 45, and 81 is 405.
819
They are the squares of the numbers 1 to 31. Use a calculator to find them.