DEV Community

hwangs12
hwangs12

Posted on

Totient Function

It counts the number of positive integers that are less than and relatively prime (does not share any prime when factored) to n.

Example:

Φ(5)=4,Φ(6)=2,Φ(8)=4 \Phi (5) = 4, \quad \Phi (6) = 2, \quad \Phi (8) = 4

Top comments (0)