import pyLHD
pyLHD.totatives(11)[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
helpers.totatives(N)
Generate all positive integers less than and coprime to N from [1,N)
| Name | Type | Description | Default |
|---|---|---|---|
N |
int | The number to find coprimes for | required |
| Type | Description |
|---|---|
| typing.List[int] | List[int]: A list of integers from [1,N) that are coprime to N |
Examples: