Cannot accelerate simple python code with very large numbers.

Hello,
Im try to accelerate python code without success. Reading around the internet but still not sure if I can even accelerate it.
My code is something like:

a = 00000000000000000000000000000000000000000000000000000000000000000000000000001
b = 00000000000000000000000000000000000000001111111111111111111111111111111111111
c = 10000000000000000000000000000000000000000000000000000000000000000000000000001

start_time = time.time()
def main():
    global a
    f = np.add(b,a))
    if np.array_equal(f,c) == True:
       print('A value is: {}'.format(a))
       print("--- %s seconds ---" % (time.time() - start_time))
    else:
       a += 1
       main()  

if __name__ == '__main__':
    main()

if someone can give some advice… will be thankful

some possible methods to accelerate python code using CUDA are:

  • pycuda
  • numba
  • cupy