From 966574dd1fc4852703de04c20a1d93b0a169d608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 10 Dec 2025 14:59:52 +0100 Subject: [PATCH] Change default sieve size to 10485760. I don't know why yet, but this seems to be the near optimal sieve size when testing with the benchmarking script. It's equal to `1024^2 * 10`. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d29ab33..6b0cfc9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ struct Opt { test:bool, #[structopt(help = "Max of the prime to generate or number to test for primality")] num:usize, - #[structopt(short, long, name = "SIZE", default_value = "1000", help = "Set a custom sieve size")] + #[structopt(short, long, name = "SIZE", default_value = "10485760", help = "Set a custom sieve size")] sieve:usize, //#[structopt(short, long, name = "n", default_value = "1", help = "Number of threads to spawn")] //jobs:u64,