(50G) Primitive Root Modulo a Prime
|
03-12-2017, 07:46 AM
(This post was last modified: 06-15-2017 01:38 PM by Gene.)
Post: #1
|
|||
|
|||
(50G) Primitive Root Modulo a Prime
For input P a prime & N an integer the programme tests whether N is a primitive root for P, returning 1 for yes, 0 for no.
For info on primitive roots please see https://en.wikipedia.org/wiki/Primitive_root_modulo_n eg For input 10007 666 the programme returns 1. indicating that 666 is a primitive root of 10007. Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(50G) Primitive Root Modulo a Prime - Gerald H - 03-12-2017 07:46 AM
|
User(s) browsing this thread: 1 Guest(s)