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 Macaulay2Doc/functions/isPrime-doc.m2:101:0.