Exercise 553Number theory › PrimesHigh schoolAdded 3 Nov 2026
Smallest prime divisor
#smallest divisor#compositeness#sqrt bound
Statement
Show that if is composite, then has a prime divisor .
Hint
Write with . Then .
Show solutionHide solution
Solution
Factorization. with .
Bound. If , then , so , contradiction. So .
Prime divisor. Any prime divisor of satisfies .
Conclusion. To test primality of , it suffices to test divisibility by primes up to .