isPrimroot | R Documentation |
Determine whether g
generates the multiplicative group
modulo p.
isPrimroot(g, p)
g |
integer greater 2 (and smaller than p). |
p |
prime number. |
Test is done by determining the order of g
modulo p
.
Returns TRUE or FALSE.
isPrimroot(2, 7) isPrimroot(2, 71) isPrimroot(7, 71)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.