Python.org, Website of Satan

P

Peter Renzland

In <[email protected]>
python.org = 194.109.137.226

194 + 109 + 137 + 226 = 666

What is this website with such a demonic name and IP address? What
evils are the programmers who use this language up to?

What is the simplest/fastest Python program to determine how many
IP addresses sum up to 666?

The simplest/fastest enumerator?

The simplest/fastest that determines which ones of them are home pages?


BTW, www.churchofsatan.org is 216.168.224.70
That adds up to 666 + 12

Are they hedging their bets? :)

-- Peter
 
M

Michael Hoffman

Peter said:
What is the simplest/fastest Python program to determine how many
IP addresses sum up to 666?

The simplest/fastest enumerator?

The simplest/fastest that determines which ones of them are home pages?

This seems to work although it could be made more efficient or elegant.
Also, the failed gethostbyaddr() calls take forever.

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:
ip_address = "%d.%d.%d.%d" % (a, b, c, d)
try:
hostname, aliaslist, ipaddrlist =
gethostbyaddr(ip_address)
except herror:
hostname = "NONE"
print hostname, ip_address
break
 
R

Roy Smith

Michael Hoffman said:
This seems to work although it could be made more efficient or elegant.
Also, the failed gethostbyaddr() calls take forever.

from socket import gethostbyaddr, herror

for a in xrange(256):
if a < 666-255*3:
continue

I'm not sure what you meant to do, but note that 'a < 666-255*3' is
false for all values of 'a' generated by the xrange() call. Removing
that test would make the code more efficient. Hard to say if it would
make it more elegant :)
 
D

Denis S. Otkidach

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.
 
S

Steve Holden

Lucas said:
I'd also like to add that the term "burn" means to be made look stupid
or be insulted.

And here was me just thinking that the burn would result from the
inevitable flames. Newsgroups really re a continual surprise.

regards
Steve
 
B

Brian Eable

mr_little said:
Brian said:
perl -e '$a="194.109.137.226"; @a = reverse split /\./, $a; for $i
(0..3) { $sum += $a[$i]*(256**$i) } print "sum = $sum\n"'
226 + 35072 + 7143424 + 3254779904 = 3261958626

http://3261958626/

Which is NOT 666.

Comrade, why perl here? :)

Huh? Alt.prophecies.nostradamus is ALL ABOUT PERL!

And at the end of the age
There shall be a mysterious language
Filled with punctuation
It will connect many things.
Are you afraid python? :)

I asked you to stop calling me python.

Feel free to write a python version if you want to.
 
M

Michael Hoffman

Denis said:
Certainly, it can be done more efficient:

Yes, of course. I should have thought about the logic of my code before
posting. But I didn't want to spend any more time on it than I had to. ;-)
 
S

Stephen Waterbury

Michael said:
Yes, of course. I should have thought about the logic of my code before
posting. But I didn't want to spend any more time on it than I had to. ;-)

Bah, you satanic types are so lazy.
 
M

Misty

Brian said:
Brian said:
perl -e '$a="194.109.137.226"; @a = reverse split /\./, $a; for $i

(0..3) { $sum += $a[$i]*(256**$i) } print "sum = $sum\n"'
226 + 35072 + 7143424 + 3254779904 = 3261958626

http://3261958626/

Which is NOT 666.

Comrade, why perl here? :)


Huh? Alt.prophecies.nostradamus is ALL ABOUT PERL!

And at the end of the age
There shall be a mysterious language
Filled with punctuation
It will connect many things.

Are you afraid python? :)


I asked you to stop calling me python.

Feel free to write a python version if you want to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,215
Messages
2,571,113
Members
47,716
Latest member
MiloManley

Latest Threads

Top