diff options
Diffstat (limited to 'sample/sieve.rb')
-rw-r--r-- | sample/sieve.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/sieve.rb b/sample/sieve.rb index a953784284..03ff8a67f4 100644 --- a/sample/sieve.rb +++ b/sample/sieve.rb @@ -1,6 +1,6 @@ # sieve of Eratosthenes sieve = [] -if ! max = $ARGV.shift; max = 100; end +if ! max = ARGV.shift; max = 100; end max = max.to_i print "1" |