Commit Graph

10 Commits

Author SHA1 Message Date
ddidderr ca93c145bb clippy: fixes 2026-04-26 13:33:25 +02:00
ddidderr 0208637dd0 chore: update edition from 2021 to 2024 2026-04-26 13:33:03 +02:00
ddidderr d3615307d6 [release] hcn v1.0.0 v1.0.0 2024-09-12 20:25:22 +02:00
ddidderr c31d2fda26 [clippy] stricter lints 2024-09-12 20:14:55 +02:00
ddidderr 1a7e57404e [code] small improvements
* readability: changing variable names/adding variables for clarity
* initialize primes Vec with reasonable space to reduce allocations
* return type of find_next_prime more idiomatic (Option)
* avoid overflow by using checked_mul
2024-02-09 22:38:11 +01:00
ddidderr 2005b7d5ca [clippy] u64 -> f64 conversion is precision loss 2023-12-09 18:26:59 +01:00
ddidderr 24cf088011 [feature] single thread code to calculate hcns using prime factorization 2023-12-07 18:38:36 +01:00
ddidderr 2f6449a25a [fix] prime sieve was missing the number 2 2023-12-07 18:37:42 +01:00
ddidderr 4c56ab2779 [feature] get primes fast with sieve of Eratosthenes 2023-12-02 09:20:20 +01:00
ddidderr 3434c9d4f6 hcn: highly composite number
A tool to find highly composite numbers fast.
2023-12-02 09:19:34 +01:00