Modular Arithmetic and Primality
Modular Arithmetic and Primality
Modular Arithmetic and Primality
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Note that we can use the same style trick as in<br />
multiplication a la Francais<br />
⎧⎧ (x ⎣⎣y/2⎦⎦<br />
) 2 if y is even<br />
x y = ⎨⎨<br />
⎩⎩ x⋅ (x ⎣⎣y/2⎦⎦<br />
) 2 if y is odd<br />
€<br />
CS 312 - Complexity Examples - <strong>Arithmetic</strong> <strong>and</strong> RSA 22