sieve(n)
n as an ascending Python list, computed with the Sieve of Eratosthenes. Return [] when n < 2.fast_pow(x, n)
x and an integer n that may be negative, using repeated squaring so that the number of multiplications is proportional to the number of bits of n. Return a float rounded to 6 decimals. Assume x is non-zero whenever n is negative.cube_root(x, tol=1e-9)
x by bisection. x may be negative or have absolute value less than 1, so choose the search interval accordingly, and stop when the interval is narrower than tol. Return the midpoint rounded to 6 decimals.