write more help text
This commit is contained in:
parent
a7ee29df8e
commit
51abf9139b
|
|
@ -140,7 +140,11 @@ func primitiveRoot(cmd *cobra.Command, args []string) {
|
||||||
var primitiveRootCmd = &cobra.Command{
|
var primitiveRootCmd = &cobra.Command{
|
||||||
Use: "primitive-root -m M",
|
Use: "primitive-root -m M",
|
||||||
Short: "Compute a primitive root modulo n",
|
Short: "Compute a primitive root modulo n",
|
||||||
Long: `Compute a primitive root modulo n.`,
|
Long: `Compute a primitive root modulo n.
|
||||||
|
|
||||||
|
This command computes a value g such that, for all integers a coprime to n, g^k = a (mod n) for some k. In other words, this command computes a generator for the multiplicative group of integers modulo n.
|
||||||
|
|
||||||
|
For improved performance, provide the prime factorization of the totient of n with the -t flag.`,
|
||||||
Run: primitiveRoot,
|
Run: primitiveRoot,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue