It doesn't matter if it's 1, 5 or 10 million.
To find a 66-bit number within 10 days, you would need to check approximately 200 (billion) giga/hashes - addresses per second. It doesn't matter if it's an even or odd number.
And here is the reason why someone has to invent a new random generator - or new computing technology in general
import os, random, time
from contextlib import contextmanager
@contextmanager
def timing(label):
start_time = time.time()
try:
yield
finally:
end_time = time.time()
elapsed_time = end_time - start_time
print(f"{label} Average Time: {elapsed_time:.8f} seconds")
puzzle = 66
start = 2 ** (puzzle - 1)
end = (2 ** puzzle) - 1
def generate_random():
return random.randint(start, end)
with timing("generate_random"):
random_value = generate_random()
print(random_value)
72040005465485153674
generate_random Average Time: 0.00002623 seconds
you need random generator with
Average Time: 0.000000000002 seconds
And then all other parts of the script no slower than this.
make
mkdir -p obj
cd obj && mkdir -p GPU
cd obj && mkdir -p hash
g++ -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -I/usr/local/include -o obj/Base58.o -c Base58.cpp
g++ -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -I/usr/local/include -o obj/IntGroup.o -c IntGroup.cpp
g++ -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -I/usr/local/include -o obj/main.o -c main.cpp
g++ -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -I/usr/local/include -o obj/Random.o -c Random.cpp
Random.cpp: In function ‘void RandAddSeed()’:
Random.cpp:154:5: error: ‘memset’ was not declared in this scope
154 | memset(&nCounter, 0, sizeof(nCounter));
| ^~~~~~
Random.cpp:27:1: note: ‘memset’ is defined in header ‘’; did you forget to ‘#include ’?
26 | #include
+++ |+#include
27 | //
make: *** [Makefile:70: obj/Random.o] Error 1
You need to #include
p.s.
Should add seed to be written in Results.txt
fprintf(f, "PubAddress: %s\n", addr.c_str());
fprintf(f, "Seed: %s\n", seed.c_str());
Something like this. So that we can reproduce the same result