def is_prefix(value):
    """
    Checks if value is a prefix

    :param value: int or str

    :return: Bool
    """
    try:
        prefix = int(value)
        if prefix > 0 and prefix <= 32:
            return True
        return False
    except:
        return False