Add number theory functions.