何かを書き留める何か

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

Project Euler Problem 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?

 
10001番目の素数を見つける問題。
Sageによるソースは以下のようになる。
----
primes_first_n(10001)[-1]
-----

組み込み函数の豊富さはその対象の興味深さを図る指標かもしれない。