我爱占星网 我爱占星网
首页
编程
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

近期文章

  • Wireless Password 密码的问题
  • The troubles of lmy 程序的实现
  • asp 中 的sql 使用了count as 然后 group 分组还需要通过 count统计的数值进行排序,可是在ACCESS测试通过,在页面中就不行,请大哥帮我看看!
  • Lamp 怎么编写的
  • 关于编辑框的显示问题。
  • Plants VS Zombies
  • The Evaluation of Determinant
  • Golang包未定义[重复]
  • 正则表达式查找字符串和反斜杠
  • UUID的Sha1十六进制-用作访问令牌
  • 在切片内对整数切片进行排序[关闭]
  • 如何在Go中设置和访问“全局”记录器?
  • 如何使用列中的切片创建表
  • “运行”和“构建”的运行时间不同
  • Golang在服务器运行时获取404
  • 如何验证XML
  • 是否可以在没有两个索引调用的情况下更新和检索Map中的元素?
  • Go中的可选参数?
  • 封送/解封与序列化/反序列化之间有什么区别?
  • mysql的语法数组

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华