【Python】エラトステネスの篩を使ってPythonで素数を探す

【Python】エラトステネスの篩というアルゴリズムを使えば素数を簡単に探すことができます。

そのアルゴリズムをPythonで実装してみました。

ソースコードは以下のとおりです。

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

コメントする

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.