4 ms·
In Scala: scala> BigInt("-80538738812075974").pow(3) + BigInt("80435758145817515").pow(3) + BigInt("12602123297335631").pow(3) res0: scala.math.BigInt = 42
by harryh 7y ago
In Scala:
scala> BigInt("-80538738812075974").pow(3) + BigInt("80435758145817515").pow(3) + BigInt("12602123297335631").pow(3)
res0: scala.math.BigInt = 42