Solved a long time ago.

Most in C, one problem 13 was giving me problems so I had to do it in
python.