Finding an element in a cyclic group of prime order
- by Martin Andersson
Greetings!
How do I check if an element a belongs to a specific cyclic group G of prime order, given the generator? Right now i simply generate all the elements in the group, save them into a container and check if the element is in it.