(self, a, b)
return IntegersModuloPrimeElement((a.val + b.val) % self.mod)
:param a: IntegersModuloPrimeElement
        :param b: IntegersModuloPrimeElement
        :return: IntegersModuloPrimeElement
def add(self, a, b):
        """

        :param a: IntegersModuloPrimeElement
        :param b: IntegersModuloPrimeElement
        :return: IntegersModuloPrimeElement
        """
        if type(a) != IntegersModuloPrimeElement or type(b) != IntegersModuloPrimeElement:
            raise TypeError("Addition only supports IntegersModuloPrimeElement objects")
        return IntegersModuloPrimeElement((a.val + b.val) % self.mod)
def add ( self , a , b ) : if type ( a ) != IntegersModuloPrimeElement or type ( b ) != IntegersModuloPrimeElement : raise TypeError ( "Addition only supports IntegersModuloPrimeElement objects" ) return IntegersModuloPrimeElement ( ( a . val + b . val ) % self . mod )