Number Theory • Topic 1
Prime Numbers
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Prime numbers are the fundamental building blocks of number theory.
Definition
Definition (Prime Number)
A natural number is prime if its only positive divisors are 1 and .
A natural number that is not prime is called composite.
Note
The number 1 is neither prime nor composite by convention.
The First Few Primes
Remark
2 is the only even prime. All other even numbers are divisible by 2 and hence composite.
Key Properties
Lemma (Euclid's Lemma)
If is prime and , then or .
This extends to: if , then for some .
Theorem (Prime Test)
To check if is prime, we only need to check divisibility by primes up to .
Proof. If with , then at least one of must be .
Suppose both and . Then , contradiction. ∎
Infinitude of Primes
Theorem (Euclid's Theorem)
There are infinitely many prime numbers.
Proof. Suppose there are only finitely many primes . Consider:
This number is not divisible by any (since ).
But must have a prime divisor, which must be different from all . Contradiction. ∎
Types of Primes
| Type | Definition | Examples |
|---|
| Twin primes | Primes both prime | |
|---|---|---|
| Mersenne primes | Primes of form | |
| Fermat primes | Primes of form | |
| Sophie Germain | Prime where is also prime |
Olympiad Techniques
Finding Prime Factors
Tip (Factorization Patterns)
When a problem involves large numbers, look for patterns:
- has factor
Using Primality
Many problems use the fact that primes have exactly two divisors.
Example
Find all primes such that is prime.
Proof (Solution). For : ✓ (prime)
For : We have or , so , meaning .
Since , it's composite.
Answer: is the only solution. ∎
Practice Problems
Exercise (Problem 1)
Prove that if and are both prime, then .
Exercise (Problem 2)
Find all primes such that is prime.
Exercise (Problem 3)
Prove that there are infinitely many primes of the form .