summaryrefslogtreecommitdiff
path: root/sample/sieve.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/sieve.rb')
-rw-r--r--sample/sieve.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample/sieve.rb b/sample/sieve.rb
index 0228243fda..192a5865d8 100644
--- a/sample/sieve.rb
+++ b/sample/sieve.rb
@@ -1,3 +1,4 @@
+# sieve of Eratosthenes
sieve = []
unless max = $ARGV.shift; max = 100; end
max = max.to_i