numtheory.cpp