summaryrefslogtreecommitdiff
path: root/gcd.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gcd.lua')
-rwxr-xr-xgcd.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcd.lua b/gcd.lua
index 43cfad9..fe7c893 100755
--- a/gcd.lua
+++ b/gcd.lua
@@ -21,5 +21,7 @@ function gcdn(ns)
return r
end
-print(gcdn(arg))
+if #arg ~= 0 then
+ print(gcdn(arg))
+end