summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/primes.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/scripts/primes.py')
-rwxr-xr-xDemo/scripts/primes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/scripts/primes.py b/Demo/scripts/primes.py
index 00eb05f..5935a3c 100755
--- a/Demo/scripts/primes.py
+++ b/Demo/scripts/primes.py
@@ -23,4 +23,5 @@ def primes(min, max):
if i >= min: print i
i = i+2
-main()
+if __name__ == "__main__":
+ main()