1230: lq202004 合数求和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:31
Solved:9
Description
合数指自然数中除了能被1和它本身整除外,还能被其他数(0除外)整除的数。最小的合数是4.如:合数4既可以被1和4整除,还能被2整除。
给定一个正整数N,计算出4到N之间所有合数的和。
例如:N等于7,其中4到6之间的合数有4、6,所有合数和等于4+6=10
Input
输入描述:输入一个正整数N(4<N<101)
Output
输出描述:输出一个整数,表示4到N之间(包含4和N)所有合数的和
Sample Input Copy
7
Sample Output Copy
10