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

近期文章

  • 若依框架环境配置时maven出错
  • python随机漫步
  • c++将一组数列按相反的数组输出
  • 运行时为什么总是错误
  • matlab为什么程序界面clockex中的时针和分针几乎连续的平稳走行,而秒针按离散步伐跳动。
  • Invalid bound statement (not found): xiao.budian.mapper.UserMapper.secletAll
  • Python编程问题
  • C++程序声明报错。
  • 为什么我在matlab运行会没有结果
  • Lawrence C语言程序怎么编写的
  • altium designer 编译
  • C语言数组指针和二维数组赋值问题
  • idea用JDBC连MySQL中文乱码
  • stm32配置定时器时 一些库函数显示未定义
  • 关于#c语言#的问题:以下代码实现将输入的两个整数按照从大到小的顺序输出
  • docker安装不了宝塔面板
  • MATLAB如何代码实现 G.703 E1 接口的帧格式以及HDB3编码
  • 二维,非稳态导热问题
  • Lamp 的一个代码的设计计算
  • 为什么byte数组输出是字母

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华