4.2 Primes and GCD Flashcards
1
Q
Definition of prime
A
An integer p greater than 1 is called prime iff the only positive factors of p are 1 and itself
2
Q
How to show if an integer is prime
A
If n is a composite ionteger( not prime) then it has a prime divisor less than or equal to the square root of n
3
Q
Steps to find the prime factorization of a number
A
- Divide the number by successive primes starting with the smallest prime, 2.
- Continue factoring till you reach a prime number
- The prime factorization is the multiplication of all the primes
4
Q
How to find the greatest common divisor of two numbers
A
By using the prime factorization, and take the min exponential of all primes in both numbers
5
Q
How to find the least common multiple of two numbers
A
By using the prime factorization, and take the max exponential of all primes in both numbers