AppsPrimRootPrimRootPrimitive root finderEnter aaa:Enter ppp:Find first primitive root ggg modulo ppp such that g>ag > ag>a