Number Theory Checkpoint

GCD/LCM, modular arithmetic, and primes.


1. Euclid's algorithm repeatedly uses:
2. LCM formula is lcm(a,b) = a / gcd(a,b) * b.
3. Binary exponentiation runs in:
4. In the sieve, for prime p you start marking at: