diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-11 09:35:57 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-11 09:35:57 (GMT) |
commit | ab6d373aa0d7763ae9b08d7e7001e89ba55d261d (patch) | |
tree | 64b8e12b7cbc403716d64d5a3ca013875ab25899 /Demo/scripts | |
parent | 4271ecaf72f53e5bd4be964609ecddb9b95825ed (diff) | |
download | cpython-ab6d373aa0d7763ae9b08d7e7001e89ba55d261d.zip cpython-ab6d373aa0d7763ae9b08d7e7001e89ba55d261d.tar.gz cpython-ab6d373aa0d7763ae9b08d7e7001e89ba55d261d.tar.bz2 |
Fix 'primes 0 1'
Diffstat (limited to 'Demo/scripts')
-rwxr-xr-x | Demo/scripts/primes.py | 2 |
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 |