Is there a programm which find an algorithm on given input data and output data ?

Hey Users
I wrote a programm in python which calculating the divider sum. It takes hours to calculate hugh numbers. Now I ask if theres a programm where I can type in the input data (the Number) and the output data (the Numbers divider sum) and the programm is calculating an algorithmus which I can implement in my python programm.
Many Thanks.

Best Regards