Logo

Programming-Idioms

  • Obj-C
  • C++
  • Java
  • Python
x = 3 ** 247
import java.math.BigInteger;
BigInteger x = new BigInteger("3", 10).pow(247);

This BigInteger constructor takes the value from a string, and you must specify the radix.
import java.math.BigInteger;
BigInteger x = new BigInteger("3").pow(247);
using System.Numerics;
var x = BigInteger.Pow(3, 247);

New implementation...