Commit Graph

78 Commits

Author SHA1 Message Date
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
39f88a3fd5 Test out license scanning. 2022-03-01 18:49:40 +01:00
e515f72228 Add test stage to CI. 2022-03-01 18:42:10 +01:00
c9293d4132 Add .gitlab-ci.yml 2022-03-01 17:50:49 +01:00
72d33325d0 Added 'test' option to man page. 2021-05-19 17:15:57 +02:00
1b9e7acfa9 Merge branch 'develop' of gitlab.com:naortega/indivisible into develop 2021-05-10 18:46:56 +02:00
b13a363119 Will probably use normal threading. 2021-05-10 18:46:05 +02:00
9d84ce14b2 Added comments documenting code conditionals. 2021-05-07 17:36:38 +02:00
9b60985f8c Removed item from TODO list. 2021-05-05 18:19:35 +02:00
202c289d47 Refractored code to handle import files better. 2021-05-05 18:17:37 +02:00
64bba9564c I don't use FLAGS. Just OPTIONS in manpage. 2021-03-04 12:56:33 +01:00
76275660e3 Removed unnecessary variables. 2021-03-04 12:50:25 +01:00
0e59a7154d Added (un)installation instructions. 2021-03-03 18:58:07 +01:00