simulating modexp for 5000 cycles.