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: primitive root (/thread-4612.html) |
primitive root - roadrunner - 09-01-2015 01:28 PM function next_primitive_root(n,p) returns the smallest primitive root of "p" that is larger than "n" example: next_primitive_root(5, 13) returns 6 next_primitive_root(Ans,13) returns 7 <enter> returns 11 <enter> returns "no primitive roots exist" Code: #pragma mode( separator(.,;) integer(h32)) |