Skip to content

Commit fd2e1c3

Browse files
committed
Remove wheel_threshold
1 parent 8763244 commit fd2e1c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cp-algo/math/sieve.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ namespace cp_algo::math {
188188
prime.set_all();
189189
static const auto [wheels, medium_primes_begin] = []() {
190190
constexpr size_t max_wheel_size = 1 << 21;
191-
constexpr uint32_t wheel_threshold = 500;
192191
uint32_t product = period * dynamic_bit_array::width;
193192
big_vector<uint32_t> current;
194193
big_vector<wheel_t> wheels;
@@ -198,7 +197,7 @@ namespace cp_algo::math {
198197
wheels.push_back(make_wheel(current, product));
199198
current = {p};
200199
product = period * dynamic_bit_array::width * p;
201-
if (product > max_wheel_size || p > wheel_threshold) {
200+
if (product > max_wheel_size) {
202201
checkpoint("make wheels");
203202
return std::pair{wheels, i};
204203
}

0 commit comments

Comments
 (0)