You have to program several functions. Do not use the math module.
Scoring
The first function counts 15 points. Other ones count 17 point each one.
>>> int_root(19) 4 >>> int_log(3, 20) 2 >>> gcd_lcm(12,18) (6, 36) >>> is_prime(51) False >>> buy_tokens(50) (6, 2) >>> inv_factorial(50) 5