11 Commits

Author SHA1 Message Date
fd36faae13
[code] remove unnecessary reference 2024-09-28 12:59:31 +02:00
490c53a280
[fix] but primes behind an Arc
- don't clone primes for every thread, instead put it behind an Arc
  (atomic reference counted)
- print the pure calculation time at the end of the program
- don't show thread debug prints
2024-09-28 12:57:29 +02:00
939e239b36
[feature] use multiple threads to calculate chunks in parallel 2024-09-12 20:35:23 +02:00
d3615307d6
[release] hcn v1.0.0 v1.0.0 2024-09-12 20:25:22 +02:00
c31d2fda26
[clippy] stricter lints 2024-09-12 20:14:55 +02:00
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
2005b7d5ca
[clippy] u64 -> f64 conversion is precision loss 2023-12-09 18:26:59 +01:00
24cf088011
[feature] single thread code to calculate hcns using prime factorization 2023-12-07 18:38:36 +01:00
2f6449a25a
[fix] prime sieve was missing the number 2 2023-12-07 18:37:42 +01:00
4c56ab2779
[feature] get primes fast with sieve of Eratosthenes 2023-12-02 09:20:20 +01:00
3434c9d4f6
hcn: highly composite number
A tool to find highly composite numbers fast.
2023-12-02 09:19:34 +01:00