First time here? Check out the FAQ!
answered 2019-02-02 17:55:36 +0100
This is my custom function to get list of relative primes
def getRelativePrimeList(n): L = []; for i in range(1,n): if gcd(i,n)==1: L.append(i); return L;