summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-09-06 19:31:29 -0400
committerpommicket <pommicket@gmail.com>2024-09-06 19:31:29 -0400
commit644d65f840ed9d8c4ccec17088b3324e60448997 (patch)
treedbf6dbc4e0b2491001c70a004488cd355cc2dfc1
parent7cdc2bcd6dc7437e68fef3ec6c31a947641781fa (diff)
Restore 256-bit UInt
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index a61548d..b37ca0b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -7,7 +7,7 @@ use std::process::ExitCode;
// bnum seems to be slightly faster than ruint,
// and 3x faster than uint.
-type UInt = bnum::types::U512;
+type UInt = bnum::types::U256;
fn is_square(n: UInt) -> bool {
let sq = n.sqrt();