PrimeQ
PrimeQ[n]
returns True if n
is prime, False otherwise.
Attributes[PrimeQ] := {Listable, Protected}
Simple examples
Further examples
PrimeQ
only works for Integers:
PrimeQ[n]
returns True if n
is prime, False otherwise.
Attributes[PrimeQ] := {Listable, Protected}
PrimeQ
only works for Integers: