Maths WorkshopMaths problems with full solutions
Exercise 554Number theory › PrimesHigh schoolAdded 3 Nov 2026

The smallest prime factor

#smallest prime factor#compositeness#bounds

Statement

For n=1001n=1001, find the smallest prime factor and check the primality test bound.

Hint

1001≈31.6\sqrt{1001}\approx31.6, so test primes up to 3131.

Show solutionHide solution

Solution

Test primes. 2,3,52,3,5 don't divide 10011001. 7∣10017\mid1001.

Smallest. 77.

Bound check. 7≤31.67\le31.6, consistent.

Conclusion. The smallest prime factor is 77; testing up to 1001\sqrt{1001} was sufficient.