Top
Back: calculate_ordering
Forward: find_first_primitive_root
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.3.35 is_primitive_root

Procedure from library crypto.lib (see crypto_lib).

Usage:
is_primitive_root(primitive, mod1)

Return:
1 if primitive is a primitive root modulo mod1, 0 otherwise

Example:
 
LIB "crypto.lib";
is_primitive_root(3,7);
==> 1
is_primitive_root(2,7);
==> 0


Top Back: calculate_ordering Forward: find_first_primitive_root FastBack: FastForward: Up: crypto_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.