summaryrefslogtreecommitdiff
path: root/sample/sieve.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/sieve.rb')
-rw-r--r--sample/sieve.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/sieve.rb b/sample/sieve.rb
index eaf4e33..640cc32 100644
--- a/sample/sieve.rb
+++ b/sample/sieve.rb
@@ -5,7 +5,7 @@ max = max.to_i
print "1"
for i in 2 .. max
- protect
+ begin
for d in sieve
fail if i % d == 0
end