90 Commits

Author SHA1 Message Date
72d6f4e042 Ignore callgrind files. 2025-12-07 22:50:30 +01:00
d4dc54fe59 Move prime finding to its own module. 2025-12-07 22:38:53 +01:00
c7f4f3c2c4 Remove more unnecessary casts. 2025-12-07 22:05:49 +01:00
6c789195e6 Add benchmark dependency check. 2025-12-06 17:47:42 +01:00
98cb2f58ea Implement average of multiple trials. 2025-12-05 16:19:44 +01:00
073276da10 Add benchmarking script. 2025-12-05 15:50:38 +01:00
56a094730c Remove unnecessary cast. 2025-12-05 15:50:25 +01:00
3a4a5c8849 Change help information for num option. 2025-12-05 15:47:31 +01:00
c0f3f730ae Optimize algorithm. 2025-12-05 15:41:26 +01:00
97d756bab4 Fix subtraction overflow. 2025-12-05 14:29:06 +01:00
91c9eaf1b9 Set fixed segment (array) size. 2025-12-05 14:27:22 +01:00
92bb314b55 Implement test functionality. 2025-12-05 13:55:06 +01:00
05e18e5aef Implement sieve of Atkin. 2025-12-05 13:16:37 +01:00
65314d52ac Simplify to normal VecDeque. 2025-12-05 11:29:55 +01:00
00da4333bf Fix readme filename in Cargo.toml 2025-12-04 11:59:06 +01:00
bde097302b Point legacy link to code.ortegas.org. 2025-12-04 11:56:50 +01:00
ed209116c4 Delete unnecessary comment. 2025-12-04 11:52:36 +01:00
63260b754e Use latest patch of structopt 0.3
Also updating dependencies in Cargo.lock
2025-12-04 11:51:45 +01:00
e4844db5d6 Set default jobs value using structopt default_value. 2025-12-04 11:42:29 +01:00
dfdadb9860 Rename primes_list -> prime_list.
Sounds better.
2025-12-04 11:26:10 +01:00
744efa105b Simplify CandidateGenerator::next() function. 2025-12-04 11:25:25 +01:00
22fe0953ca Use imported primes. 2025-12-04 11:24:40 +01:00
e17ebf47c3 Simplify CandidateGenerator::new(). 2025-12-04 11:10:17 +01:00
9a7e303ed8 Implement prime testing. 2025-12-04 11:05:40 +01:00
6894d250dd Improve testing script. 2025-12-04 11:04:16 +01:00
23c8dd694f Use quotations to avoid word splitting. 2025-12-04 10:00:33 +01:00
04d76e53bd Fix setting default PREFIX in (un)install scripts. 2025-12-04 09:59:35 +01:00
449a4bd2a6 Simplify install script gzip command. 2025-12-04 09:50:20 +01:00
8a81df1006 Ignore compressed manpage. 2025-12-04 09:48:58 +01:00
8b92ab252b Remove unnecessary mut on primes_list.
I thought this would be necessary in order to add to the primes_list...
not sure why I'm wrong.
2025-12-04 09:46:45 +01:00
1bc1a02761 Implement basic single-threaded prime checking. 2025-12-04 09:46:06 +01:00
82d75227c4 Remove GitLab CI file. 2025-12-04 09:38:59 +01:00
0797c7419d Impelment CandidateGenerator. 2025-12-04 09:38:08 +01:00
2965336290 Update copyright heading. 2025-12-04 08:59:49 +01:00
1b6ad7c797 Implement test and gen for already-imported values. 2025-12-04 08:58:57 +01:00
f88c221a67 Rename priems to primes_list. 2025-12-04 08:56:32 +01:00
fed8fe9ba8 Remove TODO list.
I'm rewriting most of it anyways.
2025-12-03 21:41:38 +01:00
ceb7e5974e Restructure code.
I'm gonna rewrite this whole thing.
2025-12-03 21:39:22 +01:00
80f9cc855d Forgot to add one to pp in parallel implementation. 2022-03-09 17:30:51 +01:00
f45932e188 Change compound to composite
In English we say "composite" for numbers which are composed as opposed
to prime.
2022-03-09 17:15:29 +01:00
374bc02b50 Use functional paradigm for file reading. 2022-03-09 16:59:30 +01:00
df7017518e Use markdown for README. 2022-03-04 17:06:39 +01:00
a2dfd6a6ca Quick fix partition point. 2022-03-04 16:57:29 +01:00
5c8c7baa75 Parallelize prime testing. 2022-03-04 15:48:00 +01:00
b682ad9e9b Add rayon for parallelization. 2022-03-04 15:22:48 +01:00
caad128ad2 Switch to using u64 for n rather than usize 2022-03-04 15:20:58 +01:00
7c2a5e7250 Use consistent formatting. 2022-03-03 16:46:31 +01:00
d2f59a6b21 Use functional programming. 2022-03-03 16:30:40 +01:00
c9db711008 Add license scanning again.
Apparently it does work?
2022-03-01 18:59:38 +01:00
752eca18ef Remove license scanning.
It's an Ultimate-only feature which I do not have.
2022-03-01 18:50:48 +01:00