The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
own voteaccepted
Â
Let L-1 = 160*n + b, where b,n ? N and 0 = b
seed > 2¹6°. Let g be the length of seed in bits.U = sha(seed) XOR sha(seed+1 mod 2^g) (where sha is the Secure Hash Algorithm)q = U OR 2¹5? OR 1q is prime, if not go to step 1.counter = 0, offset = 2For k = 0,...,n: V_k = sha((seed + offset + k) mod 2^g)W = V_0 + V_1 * 2^160 + ... + V_(n-1) * 2^((n-1)*160) + (V_n mod 2^b) * 2^(n*160)X = W + 2^(L-1)c = X mod 2*qp = X - (c-1)If p go to step 13.p is prime, if so go to step 15.counter = counter + 1, offset = offset + n + 1counter >= 4096 go to step 1, if not go to step 7.p and q so that q is a divisor of p-1.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll