Trial division up to the square root

To test whether an integer n>1n > 1 is prime by trial division, you only need to try prime divisors pp with p2≤np^2 \le n. For each integer in the table, give the largest prime pp with p2≤np^2 \le n, then carry out trial division and give the smallest prime factor of nn. If nn has no prime factor up to that bound, write the word prime in the last column. Enter each number as an integer, or the word prime where the instruction asks for it.

nLargest prime to testSmallest prime factor
221
223
323
391
397

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Prime Numbers Questions: