Programming-Idioms

This language bar is your friend. Select your favorite languages!
using System.Numerics;
var x = BigInteger.Pow(3, 247);
import std.bigint;
BigInt x = BigInt(3);
x ^^= 247;
import "dart:math";
var x = pow(3, 247);
x = :math.pow(3, 247)
import "math/big"
x := new(big.Int)
x.Exp(big.NewInt(3), big.NewInt(247), nil)
x :: Integer
x = 3^247
let x = 3n ** 247n
import java.math.BigInteger;
BigInteger x = new BigInteger("3", 10).pow(247);
(setf x (expt 3 247))
$x = gmp_pow(3, 247);
echo gmp_strval($x);
ncalc
var
  N: TValue;
begin
  N := Exp(3, 247);
  {7062361041362837614435796717454722507454089864783271756927542774477268334591598635421519542453366332460075473278915787}
end.
use bigint;
$x = 3 ** 247;
x = 3**247
x = 3 ** 247
extern crate num;

use num::bigint::ToBigInt;
let a = 3.to_bigint().unwrap();
let x = num::pow(a, 247);

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

programming-idioms.org

Related idioms