Advertisement
cwchen

[Rust] Big number demo.

Aug 22nd, 2017
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.17 KB | None | 0 0
  1. // Call third-party package
  2. extern crate num;
  3.  
  4. use num::bigint::ToBigInt;
  5.  
  6. fn main() {
  7.     let x = 2.to_bigint().unwrap();
  8.     println!("{}", num::pow(x, 100));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement