2009-01-16から1日間の記事一覧

Rubyでサムオブスクエアスクエアオブサム 〜Rubyでオイラープロジェクトを解こう!Problem6

Problem 6 - Project Eulerより The sum of the squares of the first ten natural numbers is, The square of the sum of the first ten natural numbers is, Hence the difference between the sum of the squares of the first ten natural numbers and t…

Rubyでエラトステネス 〜Rubyでオイラープロジェクトを解こう!Problem7

Problem 7 - Project Eulerより 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 10001st prime number? 最初の6つの素数2、3、5、7、11、および13を並べれば、6番目が13であることがわ…