subject
Mathematics, 14.05.2021 01:20 902coo

The DSA document includes a recommended algorithm for testing a number for primality. 1. [Choose w] Let w be a random odd integer. Then (w − 1) is even and can be expressed in the form 2am with m odd. That is, 2a is the largest power of 2 that divides (w − 1).
2. [Generate b] Let b be a random integer in the range 1 < b < w.
3. [Exponentiate] Set j = 0 and z = bm mod w.
4. [Done] If j = 0 and z = 1, or if z = w − 1, then w passes the test and may be prime; go to step 8.
5. [Terminate?] If j > 0 and z = 1, then w is not prime; terminate algorithm for this w.
6. [Increase j] Set j = j + 1. If j < a, set z = z2 mod w and go to step 4.
7. [Terminate] w is not prime; terminate algorithm for this w.
8. [Test again] If enough random values of b have been tested, then accept w as prime and terminate algorithm; otherwise, go to step 2.

Required:
a. Explain how the algorithm works.
b. Show that it is equivalent to the Miller–Rabin test.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 20:30
Solve this riddle: i am an odd number. i an less than 100. the some of my digit is 12. i am a multiple of 15. what number am i?
Answers: 1
question
Mathematics, 21.06.2019 23:00
Solve the problem by making up an equation. a man could arrive on time for an appointment if he drove the car at 40 mph; however, since he left the house 15 minutes late, he drove the car at 50 mph and arrive 3 minutes early for the appointment. how far from his house was his appointment?
Answers: 1
question
Mathematics, 22.06.2019 01:00
At a book fair, joe bought 24 books at 3 for $5 and had $2 left. how much money did he have at first?
Answers: 2
question
Mathematics, 22.06.2019 01:30
Which term describes the point where the perpendicular bisectors of the three sides of a triangle intersect?
Answers: 3
You know the right answer?
The DSA document includes a recommended algorithm for testing a number for primality. 1. [Choose w]...
Questions
Questions on the website: 13722363