Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 298 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 298 Bytes

エラトステネスのふるい

問題

以下のように、与えられた整数から素数の列を返すプログラムを作成してください。

$ ruby eratos.rb 30
2, 3, 5, 7, 11, 13, 17, 19, 23, 29

テストの実行方法

bundle install
bundle exec rspec