GCF of 5 and 8
The greatest common factor of 5 and 8 is 1 — they are relatively prime.
GCF is 1.
GCF of 5, 81
LCM40
Relatively prime?Yes
Step by step
- Prime factorize each number (table). The GCF uses each prime that appears in all of them, with its smallest power: no common prime, so the GCF is 1
- Check with the Euclidean algorithm on 5 and 8:
8 = 1 × 5 + 3
5 = 1 × 3 + 2
3 = 1 × 2 + 1
2 = 2 × 1 + 0
The last non-zero remainder is 1. - Listing method: factors of 5: 1, 5; 8: 1, 2, 4, 8. The largest one they share is 1.
| Number | power of 2 | power of 5 | Prime factorization |
|---|---|---|---|
| 5 | 0 | 1 | 5 |
| 8 | 3 | 0 | 23 |
Quick answer
5 = 5, 8 = 23. The primes they share, at the lowest power, multiply to 1.
The LCM of 5 and 8 is 40. 5/8 is already in simplest form.
Related
factors of 5, factors of 8; GCF calculator for any numbers.
GCF of 5 and 8: questions
What is the GCF of 5 and 8?
1.
How do you find the GCF of 5 and 8?
Prime factorize: 5 and 2³; multiply the shared primes at their lowest power.