Or consider an option divide and conquer
https://en.wikipedia.org/wiki/Divide-and-conquer_algorithm (from the brute-force family)
take our desired number and decompose it into terms
30568377312064202855
3 0, 5 6, 8 3, 7 7, 3 1, 2 0, 6 4, 2 0, 2 8, 5 5
3 11 11 14 4 2 10 2 10 10
14 25 6 12 20
39 18 20
57 <==left side 20 <==right side
77
how to organize it correctly? we have 20 numbers long at some point we have 5 parts (here, for example, with even
https://res.cloudinary.com/practicaldev/image/fetch/s--JMbxW5kY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://skerritt.blog/content/images/2019/03/image-35.png). we leave some part (we have 20) and just push it along the script.
import random
def foo(number):
first = random.randint(0, number)
second = number - first
return first, second
while True:
a = foo(77)
A=[]
ost = []
B=[]
C1=[]
C2=[]
b=a
A.append(b)
#print(a,b,A)
for elem in A:
for XXX in elem:
if XXX == 57: <==left side
f = foo(elem[0])
B.append(f)
ost.append(elem[1])
#print(elem,f,ost)
for AAA in ost:
if AAA == 20: <==right side
D1=[]
D2=[]
D3=[]
D4=[]
ost2 = []
for elems in B:
f1 = foo(elems[0])
f2 = foo(elems[1])
C1.append(f1)
C2.append(f2)
#ost.append(elem[1])
#print(elems,f1,f2,C1,C2,ost)
for elems in C1:
f1 = foo(elems[0])
f2 = foo(elems[1])
D1.append(f1)
D2.append(f2)
#ost.append(elem[1])
#print(D1,D2)
for elems in C2:
f1 = foo(elems[0])
f2 = foo(elems[1])
D3.append(f1)
D4.append(f2)
#ost.append(elem[1])
#print(D3,D4)
for elems in ost:
f1 = foo(elems)
#f2 = foo(elems[1])
ost2.append(f1)
#D4.append(f2)
#ost.append(elem[1])
#print(D3,D4)
#print(D1,D2,D3,D4,ost2)
add = D1+D2+D3+D4+ost2
#print(add)
End = []
for elems in add:
for x in elems:
#print(elems)
f = foo(x)
End.append(f)
End1=[]
for elems in End:
for x in elems:
#print(elems)
End1.append(str(x))
#print(End)
#print(End1)
ex = (''.join(End1))
exx = int(ex)
exxx = str(exx)
exxxx = len(exxx)
if exxxx == 20:
if exx == 30568377312064202855:
print(ex,"length>",len(ex)," right side>",ost)
break
else:
print(exx,exxxx," right side>",ost)
33031002842015744120 20 right side> [20]
10493216611310103980 20 right side> [20]
11641140504016533410 20 right side> [20]
30122010327100627463 20 right side> [20]
10002034845003022511 20 right side> [20]
10001615017710012503 20 right side> [20]
11323155020102408390 20 right side> [20]
12000101405020523132 20 right side> [20]
61982180100000315500 20 right side> [20]
22810420011220500164 20 right side> [20]
12760113116251113467 20 right side> [20]
30673057540316161694 20 right side> [20]
10513518702621631511 20 right side> [20]
24141601500100508318 20 right side> [20]
10014352140000001154 20 right side> [20]
30124201718010021413 20 right side> [20]
12531011510613031061 20 right side> [20]
51458219016130231610 20 right side> [20]
53268549001523312981 20 right side> [20]
10011329111100031232 20 right side> [20]
14012110000054926347 20 right side> [20]
20010001146919501118 20 right side> [20]
41513911021200003737 20 right side> [20]
66222231600000021134 20 right side> [20]
18640001450617233863 20 right side> [20]
21041812041510931232 20 right side> [20]
15422601112320080210 20 right side> [20]
12275141002052169371 20 right side> [20]
71040404700376523213 20 right side> [20]
11281000052352001442 20 right side> [20]
86241148022712081110 20 right side> [20]
19131254415022171667 20 right side> [20]
20030134611000015140 20 right side> [20]
20500352114191515212 20 right side> [20]
84119219102000100884 20 right side> [20]
20245012000100421017 20 right side> [20]
40326302060701147517 20 right side> [20]
29620223100071049380 20 right side> [20]
20211333210051241928 20 right side> [20]
36371432318510281649 20 right side> [20]
15177040193800029542 20 right side> [20]
10221161186100032114 20 right side> [20]
76808034218201702369 20 right side> [20]
12000045240011121215 20 right side> [20]
10003023349060811081 20 right side> [20]
***
in this crap, the output ends up going through a set from 0-0 to 9-9 (but not always).
[['0', '0'], ['0', '1'], ['0', '2'], ['0', '3'], ['0', '4'], ['0', '5'], ['0', '6'], ['0', '7'], ['0', '8'], ['0', '9'], ['1', '1'], ['1', '2'], ['1', '3'], ['1', '4'], ['1', '5'], ['1', '6'], ['1', '7'], ['1', '8'], ['1', '9'], ['2', '2'], ['2', '3'], ['2', '4'], ['2', '5'], ['2', '6'], ['2', '7'], ['2', '8'], ['2', '9'], ['3', '3'], ['3', '4'], ['3', '5'], ['3', '6'], ['3', '7'], ['3', '8'], ['3', '9'], ['4', '4'], ['4', '5'], ['4', '6'], ['4', '7'], ['4', '8'], ['4', '9'], ['5', '5'], ['5', '6'], ['5', '7'], ['5', '8'], ['5', '9'], ['6', '6'], ['6', '7'], ['6', '8'], ['6', '9'], ['7', '7'], ['7', '8'], ['7', '9'], ['8', '8'], ['8', '9'], ['9', '9'], ['9', '8'], ['9', '7'], ['9', '6'], ['9', '5'], ['9', '4'], ['9', '3'], ['9', '2'], ['9', '1'], ['9', '0'], ['8', '7'], ['8', '6'], ['8', '5'], ['8', '4'], ['8', '3'], ['8', '2'], ['8', '1'], ['8', '0'], ['7', '6'], ['7', '5'], ['7', '4'], ['7', '3'], ['7', '2'], ['7', '1'], ['7', '0'], ['6', '5'], ['6', '4'], ['6', '3'], ['6', '2'], ['6', '1'], ['6', '0'], ['5', '4'], ['5', '3'], ['5', '2'], ['5', '1'], ['5', '0'], ['4', '3'], ['4', '2'], ['4', '1'], ['4', '0'], ['3', '2'], ['3', '1'], ['3', '0'], ['2', '1'], ['2', '0'], ['1', '0']] 100
and there are 100 (but not always).
77
***
first num breaking > [(
67, 10)]
***
first num> (67, 10) first num left> (
55, 12) right ost > [10]
***
first num left> (55, 12) left> (
6, 49) right> (
9, 3) ost> [10]
***
left> [(3, 3)] [(
45, 4)] right> [(7, 2)] [(0, 3)] ost> [(7, 3)] <== loop from this step
***
[(3, 0), (1, 2), (24, 21), (0, 4), (5, 2), (1, 1), (0, 0), (1, 2), (4, 3), (3, 0)]
***
['3', '0', '1', '2', '
24', '21', '0', '4', '5', '2', '1', '1', '0', '0', '1', '2', '4', '3', '
3', '0']
***
30122421045211001243
30 lenght 22
[(0, 3), (0, 3), (18, 27), (4, 0), (1, 6), (0, 2), (0, 0), (0, 3), (6, 1), (0, 3)]
***
['0', '3', '0', '3', '
18', '27', '4', '0', '1', '6', '0', '2', '0', '0', '0', '3', '6', '1', '
0', '3']
***
03031827401602000361
03 lenght 22
[(1, 2), (0, 3), (41, 4), (4, 0), (0, 7), (2, 0), (0, 0), (2, 1), (7, 0), (3, 0)]
***
['1', '2', '0', '3', '
41', '4', '4', '0', '0', '7', '2', '0', '0', '0', '2', '1', '7', '0', '
3', '0']
***
1203414400720002170
30 lenght 21
here we can, of course, loop over these 100
and 1 more moment whether there is any sense in it is not clear. if our number 30568377312064202855 turned to 77
then each puzzle has its own number he dances there from 40 to 140 mostly
from 10000000000000000000 to 18446744073709551615
10000000000000000000 1
10000000000000000001 2
10000000000000000002 3
10000000000000000003 4
10000000000000000004 5
10000000000000000005 6
10000000000000000006 7
10000000000000000007 8
10000000000000000008 9
10000000000000000009 10
10000000000000000010 2
10000000000000000011 3
10000000000000000012 4
10000000000000000013 5
10000000000000000014 6
10000000000000000015 7
10000000000000000016 8
10000000000000000017 9
10000000000000000018 10
10000000000000000019 11
10000000000000000020 3
10000000000000000021 4
10000000000000000022 5
10000000000000000023 6
10000000000000000024 7
10000000000000000025 8
10000000000000000026 9
10000000000000000027 10
10000000000000000028 11
10000000000000000029 12
10000000000000000030 4
10000000000000000031 5
10000000000000000032 6
10000000000000000033 7
10000000000000000034 8
10000000000000000035 9
or with a big step
10000000001234567890 46
10000000002469135780 46
10000000003703703670 37
10000000004938271560 46
10000000006172839450 46
10000000007407407340 37
10000000008641975230 46
10000000009876543120 46
10000000011111111010 10
10000000012345678900 46
10000000013580246790 46
10000000014814814680 46
10000000016049382570 46
10000000017283950460 46
10000000018518518350 46
10000000019753086240 46
10000000020987654130 46
10000000022222222020 19
10000000023456789910 55
10000000024691357800 46
10000000025925925690 55
10000000027160493580 46
10000000028395061470 46
10000000029629629360 55
10000000030864197250 46
10000000032098765140 46
10000000033333333030 28
10000000034567900920 46
10000000035802468810 46
10000000037037036700 37
10000000038271604590 46
10000000039506172480 46
10000000040740740370 37
10000000041975308260 46
10000000043209876150 46
etc.
10000000000000000000 1
11123123213123123123 38
12246246426246246246 75
13369369639369369369 112
14492492852492492492 95
15615616065615615615 78
16738739278738738738 115
17861862491861861861 98
is there any point in making several brute-force programs fixed from 40 to 140?...
import random
i = 10000000000000000000
while i<= 18446744073709551615:
h1 = str(i)
g1 = ([h1[i:i + 2] for i in range(0, len(h1), 2)])
#print(g1)
A=[]
for elem in g1:
g2 = ([elem[i:i + 1] for i in range(0, len(elem), 1)])
A.append(g2)
#print(A)
#print(A[0])
B = []
for elems in A:
result = [int(item) for item in elems]
v = sum(result)
B.append(v)
#print(v)
#print(B)
C = []
g3 = ([B[i:i + 2] for i in range(0, len(B), 2)])
#print(g3,len(g3))
for elems in g3:
result = [int(item) for item in elems]
v = sum(result)
C.append(v)
#print(v)
#print(C)
c1 = int(C[0])+ int(C[1])
c2 = int(C[2])+ int(C[3])
c3 = int(C[4])
#print(c1,c2,c3)
f1= c1+c2
f2= c3
#print(f1,f2)
b1 = f1+f2
print(i,b1)
i=i+1234567890
[/size]
import random
from bit import Key
import time
list = ["16jY7qLJnxb7CHZyqBP8qca9d51gAjyXQN","13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so","1BY8GQbnueYofwSuFAT3USAhGjPrkxDdW9",
"1MVDYgVaSN6iKKEsbzRUAYFrYJadLYZvvZ","19vkiEajfhuZ8bs8Zu2jgmC6oqZbWqhxhG","1DJh2eHFYQfACPmrvpyWc8MSTYKh7w9eRF",
"1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU","1JTK7s9YVYywfm5XUH7RNhHJH1LshCaRFR","12VVRNPi4SJqUTsp6FmqDqY5sGosDtysn4",
"1FWGcVDK3JGzCC3WtkYetULPszMaK2Jksv","1DJh2eHFYQfACPmrvpyWc8MSTYKh7w9eRF","1Bxk4CQdqL9p22JEtDfdXMsng1XacifUtE",
"15qF6X51huDjqTmF9BJgxXdt1xcj46Jmhb","1ARk8HWJMn8js8tQmGUJeQHjSE7KR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aV89P","18aNhurEAJsw6BAgtANpexk5ob1aGTwSeL",
"1FwZXt6EpRT7Fkndzv6K4b4DFoT4trbMrV","1CXvTzR6qv8wJ7eprzUKeWxyGcHwDYP1i2","1MUJSJYtGPVGkBCTqGspnxyHahpt5Te8jy",
"13Q84TNNvgcL3HJiqQPvyBb9m4hxjS3jkV","1LuUHyrQr8PKSvbcY1v1PiuGuqFjWpDumN","18192XpzzdDi2K11QVHR7td2HcPS6Qs5vg",
"1NgVmsCCJaKLzGyKLFJfVequnFW9ZvnMLN","1AoeP37TmHdFh8uN72fu9AqgtLrUwcv2wJ","1FTpAbQa4h8trvhQXjXnmNhqdiGBd1oraE",
"14JHoRAdmJg3XR4RjMDh6Wed6ft6hzbQe9","19z6waranEf8CcP8FqNgdwUe1QRxvUNKBG","14u4nA5sugaswb6SZgn5av2vuChdMnD9E5",
"174SNxfqpdMGYy5YQcfLbSTK3MRNZEePoy", "1NBC8uXJy1GiJ6drkiZa1WuKn51ps7EPTv"]
def foo(number):
first = random.randint(0, number)
second = number - first
return first, second
vib = random.randint(40, 130) # <== Start
#count = 0
while True:
a = foo(vib) # <== Start
A=[]
ost = []
B=[]
C1=[]
C2=[]
b=a
A.append(b)
#print(a,b,A)
for elem in A:
f = foo(elem[0])
B.append(f)
ost.append(elem[1])
#print(elem,f,ost)
D1=[]
D2=[]
D3=[]
D4=[]
ost2 = []
for elems in B:
f1 = foo(elems[0])
f2 = foo(elems[1])
C1.append(f1)
C2.append(f2)
#ost.append(elem[1])
#print(elems,f1,f2,C1,C2,ost)
for elems in C1:
f1 = foo(elems[0])
f2 = foo(elems[1])
D1.append(f1)
D2.append(f2)
#ost.append(elem[1])
#print(D1,D2)
for elems in C2:
f1 = foo(elems[0])
f2 = foo(elems[1])
D3.append(f1)
D4.append(f2)
#ost.append(elem[1])
#print(D3,D4)
for elems in ost:
f1 = foo(elems)
#f2 = foo(elems[1])
ost2.append(f1)
#D4.append(f2)
#ost.append(elem[1])
#print(D3,D4)
#print(D1,D2,D3,D4,ost2)
add = D1+D2+D3+D4+ost2
#print(add)
count = 0
i=1
while i <=100000: #<== LOOP
count += 1
End = []
for elems in add:
for x in elems:
#print(elems)
f = foo(x)
End.append(f)
End1=[]
for elems in End:
for x in elems:
#print(elems)
End1.append(str(x))
#print(End)
#print(End1)
#time.sleep(0.02)
ex = (''.join(End1))
exx = int(ex)
exxx = str(exx)
exxxx = len(exxx)
if exxxx >= 20:
#time.sleep(0.02)
#count += 1
ran = exx
key1 = Key.from_int(ran)
addr1 = key1.address
if addr1 in list:
print (ran,"found!!!")
s5 = str(ran)
f=open(u"C:/a.txt","a")
f.write(s5 + '\n')
f.close()
break
else:
#pass
print(count,ran,exxxx,addr1) #(count,ran,exxxx,addr1)
i=i+1
print("loop end...")
count = 0
pass
[/size]