Exercise · ZW-PRIME-NUMBER-005 · ★☆☆ Basic
To decide whether 97 is prime by trial division, what is the largest prime you must test?
Choose one option.
Show answer
- C. 7
Exercise · ZW-PRIME-NUMBER-005 · ★☆☆ Basic
Choose one option.
It suffices to test primes \(p\le\sqrt{97}\approx9.8\), that is 2, 3, 5 and 7. None divides 97, so it is prime; 11 is unnecessary.
A prime number \(p\) is an integer greater than 1 whose only positive divisors are 1 and itself.