Problem 34145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of the...
分类:
其他好文 时间:
2015-08-21 09:23:31
阅读次数:
130
主要参考 http://www.zhihu.com/question/29580448/answer/45218281https://projecteuler.net/thread=10;page=5 Lucy_Hedgehog的代码如果不用map,自己写hash函数会更快// 计算 Π(n-1)c...
分类:
其他好文 时间:
2015-07-16 19:35:37
阅读次数:
166
练习自己的code能力,完成projecteuler的题目,做一个归档记录。第1题:Ifwelistallthenaturalnumbersbelow10thataremultiplesof3
or5,weget3,5,6and9.Thesumofthesemultiplesis23.Findthesumofallthemultiplesof3or5below1000.找出1000以下,可以整除3或者5的数,并计算出它们..
分类:
其他好文 时间:
2015-05-06 11:16:37
阅读次数:
139
练习自己的code能力,完成projecteuler的题目,做一个归档记录。第1题:Ifwelistallthenaturalnumbersbelow10thataremultiplesof3
or5,weget3,5,6and9.Thesumofthesemultiplesis23.Findthesumofallthemultiplesof3or5below1000.找出1000以下,可以整除3或者5的数,并计算出它们..
分类:
其他好文 时间:
2015-05-06 11:14:36
阅读次数:
98
Problem 34
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.
Find the sum of all numbers which are equal to the sum of the factorial of their digits.
Note: as 1! = 1 and 2! = 2 are...
分类:
其他好文 时间:
2014-08-25 11:59:14
阅读次数:
243
Problem 36
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
(Please...
分类:
其他好文 时间:
2014-08-25 10:06:04
阅读次数:
198
Problem 35
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.
There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13,...
分类:
其他好文 时间:
2014-08-22 17:52:39
阅读次数:
185
Problem 32
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit
number, 15234, is 1 through 5 pandigital.
The produ...
分类:
其他好文 时间:
2014-08-22 16:23:19
阅读次数:
178
Problem 33
The fraction 49/98 is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that49/98 = 4/8, which is correct, is obtained by cance...
分类:
其他好文 时间:
2014-08-22 16:17:19
阅读次数:
172
Problem 31
In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:
1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
It is possible to ...
分类:
其他好文 时间:
2014-08-21 11:30:04
阅读次数:
169