~/algor $ cat problems/number-theory/eulers-totient-function
Euler's totient function
Medium
1000 ms
128 MB
64%
You are given a positive integer . Find how many of the numbers from to are coprime with , that is, the numbers with . This number is denoted ; .
Input
One positive integer .
Output
One integer — .
Note
Examples
Input #1
12
Output #1
4
Input #2
9
Output #2
6