write output to file, test with 100 random integer range 10^50