siamesescythe
siamesescythe
About
- Username
- siamesescythe
- Joined
- Visits
- 0
- Last Active
- Roles
- Member
Comments
-
Your best bet is to post your attempt and ask people to help you make it work properly. It's unlikely anyone will write the program for you from scratch.
-
negative number minus positive number equals negative number.
-
Keep dividing by prime factors until you can't any longer. 612 = 2 * 306 = 2 * 2 * 153 Note that 1+5+3 is divisible by 3 = 2 * 2 * 3 * 51 Note that 5+1 is divisible by 3 = 2 * 2 * 3 * 3 * 17 17 is prime, you are done.
-
gcd(1,20) = 1 so 1 and 20 are coprime.
-
gcd(1,20) = 1 so 1 and 20 are coprime.
-
Keep dividing by prime factors until you can't any longer. 612 = 2 * 306 = 2 * 2 * 153 Note that 1+5+3 is divisible by 3 = 2 * 2 * 3 * 51 Note that 5+1 is divisible by 3 = 2 * 2 * 3 * 3 * 17 17 is prime, you are done.