Did some Crypto assignments in Number Theory

Had to translate mathematicaa code to python to do the assignment, so
here's some of that