2014年4月23日

摘要: Question:The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.tips:注意结果的值可能大于32位机器中long的表示范围!!!C Code... 阅读全文
posted @ 2014-04-23 19:54 楠哥1991 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Question:A Pythagorean triplet is a set of three natural numbers,abc, for which,a2+b2=c2For example, 32+ 42= 9 + 16 = 25 = 52.There exists exactly one... 阅读全文
posted @ 2014-04-23 19:52 楠哥1991 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Question:Find the greatest product of five consecutive digits in the 1000-digit number.731671765313306249192251196744265747423553491949349698352031277... 阅读全文
posted @ 2014-04-23 19:49 楠哥1991 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Question:By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10 001st prime number?C Code:... 阅读全文
posted @ 2014-04-23 19:35 楠哥1991 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Question:The sum of the squares of the first ten natural numbers is,12+ 22+ ... + 102= 385The square of the sum of the first ten natural numbers is,(1... 阅读全文
posted @ 2014-04-23 19:32 楠哥1991 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Question:2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive numbe... 阅读全文
posted @ 2014-04-23 19:29 楠哥1991 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Question:A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 9199.Find the la... 阅读全文
posted @ 2014-04-23 17:22 楠哥1991 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Question:The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ?C Code:void main(){ int prim[20... 阅读全文
posted @ 2014-04-23 17:18 楠哥1991 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Question:Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:1... 阅读全文
posted @ 2014-04-23 17:14 楠哥1991 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Question:If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum... 阅读全文
posted @ 2014-04-23 17:12 楠哥1991 阅读(108) 评论(0) 推荐(0) 编辑

导航