import hashlib
previous_proof = 0
new_proof = 0
check_proof = False
while check_proof is False:
hash_operation = hashlib.sha256(str(new_proof**2 - previous_proof**2).encode()).hexdigest()
if hash_operation[:4] == '0000':
check_proof = True
else:
new_proof+=1
print(hash_operation)
print( new_proof)
I made this script for finding a string in sha256 that starts with '0000'. Could anyone explain me why if i put '000000'instead of '0000' it takes more time to find the string? It is supposed to take less time because i have more zeros at the beginning,right?