Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open("ips.txt")
- count = 0
- for i in f:
- line = i.split("/")
- count += 2 ** (32 - int(line[1]))
- print(count)
- #output
- #15832568
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement