Via this post, I found out about Russian Peasant Multiplication, a rather clever method of multiplication that only requires, doubling, halving and adding. So I wrote some code to display it: #!/usr/bin/python # -*- coding: utf-8 -*- import sys results=[] … Continue reading
↧