Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return a list of positive integers coprime to a given integer
ResourceFunction["CoprimeIntegerList"][n] gives a list of the positive integers less than n that are coprime to n. |
Find the integers less than 12 that are coprime to 12:
In[1]:= |
Out[1]= |
Coprime integer list discards the sign of its input:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License