BZOJ4802: 欧拉函数

Time Limit: 5 Sec  Memory Limit: 256 MB

Description

已知N,求phi(N)

Input

正整数N。N<=10^18

Output

输出phi(N)

Sample Input

8

Sample Output

4

HINT

Source

By FancyCoder

Solution

MillerRabin素数测试模板题。

 

点赞

发表评论

您的电子邮箱地址不会被公开。