TheBird

helpers.py

274 B · python · 12 lines

1import random23def hex_key(count: int):4    return "".join(random.choices("abcdef123456789", k=count))56def is_prime(n: int) -> bool:7    if n <= 1:8        return False9    for i in range(2, int(n**0.5) + 1):10        if n % i == 0:11            return False12    return True