Problem 57
Move problem 57 to the largenum module
Remove redundant code
Move the number theoretic function order to the common module