isPrime f
|
|
|
|
|
|
Since factor returns factors guaranteed only to be pseudoprimes, it may be useful to check their primality, as follows.
|
|
|
|
Primality testing for integers is handled by FLINT.
The object isPrime is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/isPrime-doc.m2:101:0.