def randomized_primality_testing(n, k):

    q = 0.5     # Property of the jacobi_witness function

    # t = int(math.ceil(k / math.log(1/q, 2)))
    t = ceil(k / math.log(1/q, 2))
    for i in range(t+1):
        x = randint(1, n-1)
        if jacobi_witness(x, n): return False
    
    return True
Return a test suite consisting of all the test cases in the module.
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/rsa/_version133.py/randomized_primality_testing--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_queries.py/suite