index
:
gcd
master
The Greatest Common Divisor in many languages and tools
Igor Pashev
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
gcd.lua
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'gcd.lua')
-rwxr-xr-x
gcd.lua
4
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