summaryrefslogtreecommitdiffstats
path: root/Demo/scripts
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-11 09:35:57 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-11 09:35:57 (GMT)
commitab6d373aa0d7763ae9b08d7e7001e89ba55d261d (patch)
tree64b8e12b7cbc403716d64d5a3ca013875ab25899 /Demo/scripts
parent4271ecaf72f53e5bd4be964609ecddb9b95825ed (diff)
downloadcpython-ab6d373aa0d7763ae9b08d7e7001e89ba55d261d.zip
cpython-ab6d373aa0d7763ae9b08d7e7001e89ba55d261d.tar.gz
cpython-ab6d373aa0d7763ae9b08d7e7001e89ba55d261d.tar.bz2
Fix 'primes 0 1'
Diffstat (limited to 'Demo/scripts')
-rwxr-xr-xDemo/scripts/primes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/scripts/primes.py b/Demo/scripts/primes.py
index eeb14ee..2bf5ba2 100755
--- a/Demo/scripts/primes.py
+++ b/Demo/scripts/primes.py
@@ -3,7 +3,7 @@
# Print prime numbers in a given range
def primes(min, max):
- if 2 >= min:
+ if max >= 2 >= min:
print 2
primes = [2]
i = 3