hello i'm fairly new to C and theres this rather cruel program that my teacher has given me to solve.

it generates a x + y = ? equation with x and y being rather ridiculously large numbers and for some reason he made it so that if i don't calculate in 5 seconds, the program will shut down and the variables will be re-randomized.

i'd love some help on this. i've tried rather futile attempts on creating another program with the vague idea of using main(int argc, char *argv) to open the program and attain its variables and auto calculate it, but then i don't know how a calculator works lol. i tried googling on how to scan the program but then it comes up with things that are probably not needed to solve this.. like dll injection or something o.O.

thanks