1
Answer

Miller Rabin implementation with gmp library

Photo of mapa

mapa

15y
6.2k
1
First of all sorry for my english. I want to implement the Miller–Rabin primality test algorithm. I have to create two random numbers with 10 and 70 bits, respectively, and to check if that numbers are primes. I don't know a lot of stuff about programming so if someone could  help me i would very pleased.

respectively

Ge?a se ?????, ???? ?a ???p???s? t?? p??a??t??? a??????µ? t?? Miller-Rabin ?a? ?a e????? a? ??p???? t??a??? a???µ?? p?? ?a p??pe? e?? ?a d?µ??????s?, e??a? p??t??. ?? a???µ?? a?t?? ?a ????? µ??e??? 10 ?a? 70 bits a?t?st???a. ?e? ???? p???? ap? p????aµµat?sµ? a??? e?p??? p?? ?a? µe t?? d??? sa? ß???e?a ?a ß?e?e? ??p??a ????. ??? ??p??e? ?d?e? ?a? µ???? d? ?t? ?p???e? a?tap????se? st? ??µa ?a a?eß?s? t?p??? ?a? ?e???? ?p??a ß???e?a µp??? ?a p??sf??? ap? t?? µa??µat??? p?e??? t?? ??µat??. ?p???? ???e? ap? C pa?a?a?? a? ß????se?.

Answers (1)

0
Photo of Jaganathan Bantheswaran
NA 21.9k 2.2m 11y
The other solution is,

btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());

for this, you have to set UseSubmitBehaviour="false"
0
Photo of Hardik Patel
NA 376 332.7k 11y
hi girish,

i tried it but it's not working.
0
Photo of Girish Sapariya
NA 314 9.3k 11y
Hi Hardik, 
         You can set "Enable" property of button to "false" once it is click.
And later after you have done with your entries reset the form and then set "Enable" property of button to "true".

Hope this helps you... :)
0
Photo of Satyapriya Nayak
NA 53k 8m 11y
http://www.c-sharpcorner.com/UploadFile/suthish_nair/disable-a-submit-button-during-post-backs/