fork download
  1. def get_page_index(address):
  2. # Define the number of addresses per page
  3. addresses_per_page = 128
  4.  
  5. # Calculate the hash of the address
  6. hash_value = int(hash(address))
  7.  
  8. # Calculate the page index using the hash value
  9. page_index = hash_value // (addresses_per_page * 8)
  10.  
  11. # Return the page index (0-indexed)
  12. return page_index + 1
  13.  
  14. # Input your Bitcoin address
  15. address = "1GSWUGWZcLfxR4LEcbvgwfWoqezT3n2of4"
  16.  
  17. # Call the function to get the page index
  18. page_index = get_page_index(address)
  19.  
  20. # Print the result
  21. print(f"Page {page_index} out of 904625697166532776746648320380374280100293470930272690489102837043110636675")
Success #stdin #stdout 0.02s 25836KB
stdin
Standard input is empty
stdout
def get_page_index(address):
    # Define the number of addresses per page
    addresses_per_page = 128
    
    # Calculate the hash of the address
    hash_value = int(hash(address))
    
    # Calculate the page index using the hash value
    page_index = hash_value // (addresses_per_page * 8)
    
    # Return the page index (0-indexed)
    return page_index + 1

# Input your Bitcoin address
address = "1GSWUGWZcLfxR4LEcbvgwfWoqezT3n2of4"

# Call the function to get the page index
page_index = get_page_index(address)

# Print the result
print(f"Page {page_index} out of 904625697166532776746648320380374280100293470930272690489102837043110636675")