何かを書き留める何か

数学や読んだ本について書く何かです。最近は社会人として生き残りの術を学ぶ日々です。

2013-01-09から1日間の記事一覧

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/problem=10 200万以下の素数の和を求める問題。 例によってSageの組み込み函数を用いる。 ---- print sum(prime_range(…

Project Euler Problem 9

A Pythagorean triplet is a set of three natural numbers, a b c, for which, 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://proj…