Commit Graph

36 Commits

Author SHA1 Message Date
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
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
22fe0953ca Use imported primes. 2025-12-04 11:24:40 +01:00
9a7e303ed8 Implement prime testing. 2025-12-04 11:05:40 +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
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
ceb7e5974e Restructure code.
I'm gonna rewrite this whole thing.
2025-12-03 21:39:22 +01:00
374bc02b50 Use functional paradigm for file reading. 2022-03-09 16:59:30 +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
9d84ce14b2 Added comments documenting code conditionals. 2021-05-07 17:36:38 +02:00
202c289d47 Refractored code to handle import files better. 2021-05-05 18:17:37 +02:00
76275660e3 Removed unnecessary variables. 2021-03-04 12:50:25 +01:00
c68d75cb8c Add help information to --help option. 2021-03-03 13:24:53 +01:00
196f7b9ca9 Change name of argument for -i option. 2021-03-03 12:57:46 +01:00
6f3324e624 Add feature for imports. 2021-03-03 11:41:52 +01:00
c10c79dcfd Removed unnecessary comments for old argument parsing. 2021-03-03 11:18:52 +01:00
4e83d73810 Changed options structure and added verbose option. 2021-03-02 18:09:24 +01:00
343a89e89f Switch to tabs (not spaces).
Stupid default options for NeoVim think it's a good idea to switch my
indentation type without asking me.
2021-03-01 19:40:02 +01:00
3f089ad0a4 Better iteration over elements. 2021-03-01 19:21:35 +01:00
7a755f7b05 Fixed bug. 2021-03-01 18:51:53 +01:00
e8d4a876ef Added license. 2021-03-01 16:18:13 +01:00
9defe837e8 Use a vector to store known primes. 2021-03-01 16:12:23 +01:00
5538ac7515 Optimize the algorithm 2021-02-26 18:27:16 +01:00
eb4405e1c3 Basic prime number calculation. 2021-02-26 18:22:20 +01:00
01f3f6ddf6 Initial commit. 2021-02-26 17:58:58 +01:00