D.12.3.39 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-0-3, 2016, generated by
texi2html
.