i need to know the value of an power and mod of 3 values, such as:
print 1_299_709 ** 1_300_751 % 104_729
was there any ruby gems or faster way to compute this using ruby?