On Fri, 14 Jan 2005 11:16:59 +0000 Michael Hoffman <[EMAIL PROTECTED]> wrote:
> from socket import gethostbyaddr, herror > > for a in xrange(256): > if a < 666-255*3: > continue > for b in xrange(256): > if a+b < 666-255*2: > continue > for c in xrange(256): > if a+b+c < 666-255: > continue > for d in xrange(256): > if a + b + c + d == 666: Certainly, it can be done more efficient: for a in xrange(256): for b in xrange(max(0, (666-255*2)-a), 256): for c in xrange(max(0, (666-255)-a-b), min(666-a-b+1, 256)): d = 666-a-b-c ... I've checked these IPs with ip2cc (which can miss entries registered last month): there are 2907248 "evil" addresses, most of them (1568430) in USA. Too many to resolve. -- Denis S. Otkidach http://www.python.ru/ [ru] -- http://mail.python.org/mailman/listinfo/python-list