So for no particular reason I wanted to know what the largest number you can store in a gigabyte of memory. So I used an arbitrary precision library to calculate it, but the trouble is trying to output this number to a file, since a string can only store int.max character.
Apint a = new Apint(2);
a = ApintMath.pow(a, 8589934591l);
a = a.subtract(new Apint(1));
File file = new File("theNumber.txt");
PrintWriter pls = new PrintWriter(file);
a.writeTo(pls, true);
pls.close();