General::modp

Details

  • This message is generated when the value of the Modulus option is not a prime number.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[General::modp].

Examples

Basic Examples  (2)

The value of the Modulus option is expected to be an integer:

This shows a valid Modulus specification in Together:

The value of the Modulus option in Together is expected to be a prime number:

You can use PrimeQ to determine if a number is prime:

This shows a valid value for the Modulus option in Together: