Primitive root modulo n

Revision en1, by restart., 2015-09-22 21:33:54

Given a number n as input how to find the (all the primitive roots of n) % n if n is prime. please give me some hint how can i calculate the primitive roots.. TIA.

Tags math, c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English restart. 2015-09-22 21:33:54 187 Initial revision (published)