C++ and Python implementation of few number theory algorithms.