




'''simple docstring'''
from doctest import testmod
from math import sqrt





def  lowerCamelCase(       SCREAMING_SNAKE_CASE_    )		->		list:
			A_       		=   []
			if num < 1:
						return facs
			facs.append(1    )
			if num == 1:
						return facs
			facs.append(SCREAMING_SNAKE_CASE_    )
			for i in range(2					,int(sqrt(SCREAMING_SNAKE_CASE_    )    ) + 1    ):
						if num % i == 0:  # If i is a factor of num
									facs.append(SCREAMING_SNAKE_CASE_    )
									A_       		=   num // i  # num//i is the other factor of num
									if d != i:  # If d and i are distinct
												facs.append(SCREAMING_SNAKE_CASE_    )  # we have found another factor
			facs.sort()
			return facs


if __name__ == "__main__":
							testmod(name="factors_of_a_number", verbose=True)










'''simple docstring'''
def  lowerCamelCase(       SCREAMING_SNAKE_CASE_    )		->		list:
			A_       		=   [True for i in range(n + 1    )]
			A_       		=   [i - 1 for i in range(n + 1    )]
			A_       		=   []
			for i in range(2					,n + 1    ):
						if is_prime[i]:
									primes.append(SCREAMING_SNAKE_CASE_    )
						for j in range(0					,len(SCREAMING_SNAKE_CASE_    )    ):
									if i * primes[j] >= n:
												break
									A_       		=   False

									if i % primes[j] == 0:
												A_       		=   totients[i] * primes[j]
												break

									A_       		=   totients[i] * (primes[j] - 1)

			return totients


if __name__ == "__main__":
							import doctest

							doctest.testmod()




