我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

The Euler function

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

http://www.cnblogs.com/jackge/archive/2012/12/18/2823235.html

http://blog.csdn.net/kenden23/article/details/35784531

近期文章

  • The widest road
  • 我有一些MATLAB代码,没学过,能不能给注释一下?
  • VB通过MSC控件接收数据全为0
  • C语言最简单的飞机订票系统程序设计
  • MyEclipse搭建SSH框架时,运行自动生成的index.jsp
  • android 中的PIN码启用和关闭是怎么实现的?
  • android的mediaplayer的路径播放问题
  • Soccer Tournament
  • Containers
  • 哈希表平均查找长度问题
  • web项目测试100并发用loadrunner怎么测试呀
  • Invalid path was requested /startExam问题分析及解决方法
  • java web程序照着书敲遇到问题
  • python的数组转换问题
  • eclipse spring tool问题
  • 日志分析和展现有什么好用的开源框架?
  • SCRIPT7002: XMLHttpRequest: 网络错误 0x2f8f,
  • qtdesigner怎么做一个计算器
  • ASP提取相同数据的时间
  • $ is not a function at HTMLDocument

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华