nomasp

風立ちぬ、いざ生きめやも」

【Project Euler】9 第九题

 A Pythagorean triplet is a set of three natural numbers, a a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly o...

2015-02-07 12:26:36

阅读数 1117

评论数 0

【Project Euler】8 第八题

 A Pythagorean triplet is a set of three natural numbers, a a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly o...

2015-02-07 12:26:00

阅读数 1512

评论数 0

【Project Euler】7 第七题

//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? static vo...

2015-02-07 12:25:29

阅读数 1342

评论数 0

【Project Euler】6 第六题

 //The sum of the squares of the first ten natural numbers is,         //12 + 22 + ... + 102 = 385         //The square of the sum of the first ...

2015-02-07 12:24:50

阅读数 1241

评论数 0

【Project Euler】5 第五题

 //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 num...

2015-02-07 12:24:07

阅读数 1064

评论数 0

【Project Euler】4 第四题

 //A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. //Find t...

2015-02-07 12:23:33

阅读数 1312

评论数 0

【Project Euler】3 第三题

 //The prime factors of 13195 are 5, 7, 13 and 29.         //What is the largest prime factor of the number 600851475143 ?         static void M...

2015-02-07 12:21:52

阅读数 1262

评论数 0

【Project Euler】2 第二题

 //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: /...

2015-02-07 12:20:56

阅读数 1039

评论数 0

【Project Euler】1 第一题

//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 of...

2015-02-07 12:19:11

阅读数 1063

评论数 0

提示
确定要删除当前文章?
取消 删除