from sympy.core.numbers import igcd
from primetest import isprime
from factor_ import factorint, trailing, totient

def int_tested(*j):
    """
    Return all args as Python integers and confirm that the input
    was equivalent to the integer, else raise a ValueError.

    Examples
    ========

    >>> from sympy.ntheory.residue_ntheory import int_tested
    >>> from sympy import sqrt
    >>> 3.0
    3.0
    >>> int_tested(_) # convert to int and test for equality