No Programming, No Life

プログラミング関連の話題や雑記

2012-05-23から1日間の記事一覧

エラトステネスの篩を使ってClojureで素数を求める

はじめに Project Eulerの問題7, 素数10001番目を求める問題。 今回はエラトステネスの篩を使って実装してみた。 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 numbe…