/* The Euler function |
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) |
Total Submission(s): 224 Accepted Submission(s): 124 |
Problem Description
The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are smaller than n and coprime to n, and this function has a lot of beautiful characteristics. Here comes a very easy question: suppose you are given a, b, try to calculate (a)+ (a+1)+....+ (b)
|
Input
There are several test cases. Each line has two integers a, b (2<a<b<3000000).
|
Output
Output the result of (a)+ (a+1)+....+ (b)
|
Sample Input
3 100 |
Sample Output
3042 |
Source
2009 Multi-University Training Contest 1 - Host by TJU
|
Recommend
gaojie
|
相关文章
- 【数论】【欧拉函数】【筛法求素数】【乘法逆元】【快速幂取模】bzoj2186 [Sdoi2008]沙拉公主的困惑
- PHP简单实现欧拉函数Euler功能示例
- 51Nod 1239 欧拉函数前n项和 杜教筛
- HDU5597/BestCoder Round #66 (div.2) GTW likes function 打表欧拉函数
- hdu 5597GTW likes function(欧拉函数)
- 【bzoj2190】[SDOI2008]仪仗队 数论 欧拉函数 筛法
- 素数的线性筛 && 欧拉函数
- [bzoj 2190][SDOI2008]仪仗队(线性筛欧拉函数)
- 积性函数&线性筛&欧拉函数&莫比乌斯函数&因数个数&约数个数和
- 欧拉函数O(sqrt(n))与欧拉线性筛素数O(n)总结