smallest primitive root - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: smallest primitive root (/thread-4611.html) |
smallest primitive root - roadrunner - 09-01-2015 01:18 PM function smallest_primitive_root(p) returns the smallest primitive root of an integer. Examples: smallest_primitive_root(7) returns: 3 smallest_primitive_root(8) returns: "no primitive roots exist" Code: #pragma mode( separator(.,;) integer(h32)) |