Recitation 5b (Nov 29, 2011)

Note: this recitation covers the material of recitation 4a and the beginning of recitation 6a.

Code examples

Example 1: binary GCD


Download (right click -> save link as "ex1.py")

Example 2: generating Diffie—Hellman parameters


Download (right click -> save link as "ex2.py")

Example 3: calculating the median


Download (right click -> save link as "ex3.py")

Code from lecture 5


Download (right click -> save link as "lecture5.py")

Interpreter session log

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License