CVS: crypto/Util number.py,1.8,1.9
"A.M. Kuchling" <[email protected]> Fri, 21 Mar 2003 07:12:57 -0800
| Newsgroups | gmane.comp.python.cryptography.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/pycrypto/crypto/Util
In directory sc8-pr-cvs1:/tmp/cvs-serv4511
Modified Files:
number.py
Log Message:
Make the comment correct by adding the remaining primes <256
Index: number.py
===================================================================
RCS file: /cvsroot/pycrypto/crypto/Util/number.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- number.py 21 Mar 2003 14:16:35 -0000 1.8
+++ number.py 21 Mar 2003 15:12:54 -0000 1.9
@@ -93,6 +93,7 @@
for i in sieve:
if (N % i)==0: return 0
+
# Compute the highest bit that's set in N
N1=N - 1L ; n=1L
while (n<N): n=n<<1L
@@ -116,8 +117,8 @@
sieve=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59,
61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127,
- 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191]
-
+ 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193,
+ 197, 199, 211, 223, 227, 229, 233, 239, 241, 251]
# Improved conversion functions contributed by Barry Warsaw, after
# careful benchmarking
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf