This follows the same idea as Claudiu's answerClaudiu's answer, but it isn't based on it. I had a similar idea which I posted just a few minutesjust a few minutes after he posted hishe posted his, but I discarded it since it didn't come anywhere near the time limit.
However, aditsu's suggestionaditsu's suggestion to upgrade to Java 8 and my ideamy idea of using powers of 10 allowed CJam to calculate numbers beyond the reach of GolfScript, which seems to be due to some bugs/limitations of Ruby's Bignum.