2008-01-01から1年間の記事一覧

Project Euler: Problem 11

In the 20x20 grid below, four numbers along a diagonal line have been marked in red.08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67…

Project Euler: 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. http://projecteuler.net/index.php?section=problems&id=10 2,000,000 以下の自然数列の中に現われる素数の合計を求めよとのこと。とりあえず、P…

Project Euler: Problem 9

A Pythagorean triplet is a set of three natural numbers, a a^(2) + b^(2) = c^(2)For example, 3^(2) + 4^(2) = 9 + 16 = 25 = 5^(2).There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. http://projecte…

Project Euler: Problem 8

Find the greatest product of five consecutive digits in the 1000-digit number.73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698…

Project Euler: Problem 7

クリスマスも年末年始も…素数を数えるんだ。 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6^(th) prime is 13.What is the 10001^(st) prime number? http://projecteuler.net/index.php?section=problems&id=7 1…

Project Euler: Problem 4

明日から冬休みらしいんだけど、いまいち実感が湧かない。気合いを入れるために Project Euler やってみたけど、いまいちきれいに書けた気がしない。 A palindromic number reads the same both ways. The largest palindrome made from the product of two …

Project Euler: Problem 6

The sum of the squares of the first ten natural numbers is, 1^(2) + 2^(2) + ... + 10^(2) = 385The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)^(2) = 55^(2) = 3025Hence the difference between the sum of the squa…

Project Euler: Problem 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 number that is evenly divisible by all of the numbers from 1 to 20? http://projecteuler.net/index.php?section=pr…

Project Euler はじめました

Project Euler というものをはじめてみた。これまでの人生、文系的プログラマとしてのほほんと過ごしてきたけれど、プログラミングをするうえで数学ってのが重要になる局面は、当たり前だけどやっぱり多いです。プログラマとしてやっていくつもりなら、適当…

Project Euler: Problem 3

The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ? http://projecteuler.net/index.php?section=problems&id=3 バカでかい合成数 (600851475143) を分解して得られる最大の素因数を求めよとの…

Project Euler: Problem 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:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...Find the sum of all the even-valued terms in the sequence whi…

Project Euler: Problem 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 all the multiples of 3 or 5 below 1000. http://projecteuler.net/index.php?section=problems&id=…

英辞郎辞書変換用スクリプトの作成

Ubuntu 8.10 に切り替えてから1ヶ月ほど。これまで gnome-dictionary を使ってたんだけど、dictd と組み合せないとオフラインでは使えなかったりちょっと使い勝手に難があった。ってなわけで、http://stardict.sourceforge.net:StarDict に乗り換えてみた。S…

楽天テクノロジーカンファレンス2008に行ってきた

表題の通りです。2008/11/29(Sat) 13:00 開始。 https://www.rakuten.co.jp/event/techconf/2008/ http://blog.miraclelinux.com/yume/2008/11/2008-128e.html http://wiki.fdiary.net/rails/?RailsMeetingTokyo-0035 感想にもなってない羅列でアレですが、…

untitled

log

どうやら三連休だったようだ。気づけば無為に過ごしていた。異常なまでの無気力感。成さねばならないことは多いはずなのにさっぱり手がつかない。気晴らしにと思い資格試験を受けてみたりもしたが、却って気が滅入ったように思われてならない。一応は、合格…

they are a changing

ゆっくりしすぎた結果がこれだよ。こっそり、復活してみよう。