OpenersNotesSection(Spacer1)Details

This message is generated when the value of the (RefLink[Modulus, paclet:ref/Modulus]) option is not a prime number.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[General::modp].

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

The value of the (RefLink[Modulus, paclet:ref/Modulus]) option is expected to be an integer:

Together[3/x+1/(x+5),Modulus-> 5/2]

This shows a valid (RefLink[Modulus, paclet:ref/Modulus]) specification in (RefLink[Together, paclet:ref/Together]):

Together[3/x+1/(x+5),Modulus-> 2]

The value of the (RefLink[Modulus, paclet:ref/Modulus]) option in (RefLink[Together, paclet:ref/Together]) is expected to be a prime number:

Together[923/(807+x)+1/x,Modulus->583]

You can use (RefLink[PrimeQ, paclet:ref/PrimeQ]) to determine if a number is prime:

PrimeQ[583]

PrimeQ[587]

This shows a valid value for the (RefLink[Modulus, paclet:ref/Modulus]) option in (RefLink[Together, paclet:ref/Together]):

Together[923/(807+x)+1/x,Modulus->587]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[General, paclet:ref/General])}})}})