division by 7 efficiently ???

krypto.wizard at gmail.com krypto.wizard at gmail.com
Wed Jan 31 21:42:54 EST 2007


How to divide a number by 7 efficiently without using - or / operator.
We can use the bit operators. I was thinking about bit shift operator
but I don't know the correct answer.




More information about the Python-list mailing list