
欧拉工程
guanjianhe
这个作者很懒,什么都没留下…
展开
-
欧拉工程 Problem 16
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 2^1000?#include <stdio.h>int main(){ char st[500] = {0}; int sum = 0;...原创 2018-08-06 12:17:43 · 200 阅读 · 0 评论 -
欧拉工程 Problem 10
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.#include &lt;stdio.h&gt;#define NUM 2000000int main(){ int i, j; unsigned long ...原创 2018-08-06 12:24:45 · 211 阅读 · 0 评论