Looking for common divisor(Mathematics) - IchigoJam
What number is divisible by 182?
With "FOR" / "NEXT" command, while incrementing a variable X by 1 from 2, and repeat.
It is OK that "N=182" be also written as "LET N, 182"!
Let's check the "divisor", a number that came out.
It can divide properly!
What is the number that can divide 455?
It displays the number that can divide both 182 and 455.
The displayed numbers 7, 13, and 91 are the "common divisor" of 182 and 455.
The largest number 91 is the "greatest common divisor" of 182 and 455.
Try it!
1. Let's display the "common divisor" of 3432 and 2002.
2. Let's divide 3432 by "greatest common divisor" from (1).
3. Let's multiply the number calculated above (2) with "greatest common divisor".
4. Let's count how many "divisors" of 2002.
5. Let's look for the "prime numbers" that do not have "divisor" in a 4 digit number.
6. Let's confirm that there is no "common divisor" between "prime numbers" from (5).