Totient(n) gives the amount of numbers beneath n that are coprime to n. Is it possible to concisely find Totient(n) where all numbers are beneath a limit x so that TotientLimit(n,x) would give the amount of numbers coprime to n up to x? For example:
TotientLimit(10,6) 1:Coprime to 10 2:Not coprime 3:Coprime to 10 4:Not coprime 5:Not coprime 6-9:above or equal to limit, excluded.
So TotientLimit(10,6) is equal to 2 because there are 2 numbers coprime to 10 that are lower than 6.
Is there a function for that? Thanks