(50G) Primitive Root Modulo a Prime - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (50G) Primitive Root Modulo a Prime (/thread-7924.html) |
(50G) Primitive Root Modulo a Prime - Gerald H - 03-12-2017 07:46 AM 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:
|