2078 9

BIT152 · 2078 · 5 marks

Explain trial division with example? Using trial division, show that 101 is prime.

Explain trial division with example? Using trial division, show that 101 is prime. [5]

Discrete StructureChapter 6: Number Theory and Modular ArithmeticPrime numbers and trial divisionNumerical: Trial division primality
  • Number to test: $n = 101$ - Method required: trial division - Marks: 5 Trial division is a primality-testing method. To determine whether an integer $n 1$ is prime, we attempt to divide $n$ by successive integers starting from $2$. If any of them divides $n$ exactly (remainder $0$), then $n$ is...