D.12.2.41 is_prime
Procedure from library
crypto.lib
(see
crypto_lib
).
Usage:
is_prime(n)
Return:
1 if n is prime, 0 otherwise
Example:
LIB "crypto.lib"; ring r = 0,x,lp; is_prime(10); ==> 0 is_prime(7); ==> 1
User manual for
Singular
version 4.4.0, 2024, generated by
texi2html
.