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.