Adding base numeric theory functions.