Logo

Programming-Idioms

Assign to x the value 3^247
Implementation
Rust

Implementation edit is for fixing errors and enhancing with metadata. Please do not replace the code below with a different implementation.

Instead of changing the code of the snippet, consider creating another Rust implementation.

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
import "math/big"
x := new(big.Int)
x.Exp(big.NewInt(3), big.NewInt(247), nil)
import java.math.BigInteger;
BigInteger x = new BigInteger("3", 10).pow(247);
x = 3 ** 247
use bigint;
$x = 3 ** 247;
import std.bigint;
BigInt x = BigInt(3);
x ^^= 247;
import "dart:math";
var x = pow(3, 247);
x :: Integer
x = 3^247
x = 3 ** 247
x = :math.pow(3, 247)
$x = gmp_pow(3, 247);
echo gmp_strval($x);
uses ncalc;
var
  X: TValue;
begin
  X := Exp(3, 247);
end.
let x = 3n ** 247n;
(setf x (expt 3 247))
using System.Numerics;
var x = BigInteger.Pow(3, 247);
(define x (expt 3 247))