Commit Graph

31 Commits

Author SHA1 Message Date
Nicolás A. Ortega
f2eb3e869e
Fixed the file issue...
but the export issue still remains -_- I hate seg faults.
2016-12-27 21:47:16 +01:00
Nicolás A. Ortega
a695cce709
Moving shit to files.c 2016-12-27 21:31:24 +01:00
Nicolás A. Ortega
096cb2eb16
Moving file I/O to own file. Everything works except export. 2016-12-26 18:50:51 +01:00
Nicolás A. Ortega
1783b16024
Use raw I/O for file saving. 2016-12-26 16:51:51 +01:00
Nicolás A. Ortega
6c2f96416b
Read and write primes to and from file. 2016-12-26 15:56:56 +01:00
Nicolás A. Ortega
fa3f2dd2b1
New goal before paralellization 2016-12-22 16:31:24 +01:00
Nicolás A. Ortega
4390fca3ef
Added comments. 2016-12-14 23:38:22 +01:00
Nicolás A. Ortega
2629c12f1a
Set goal for v1.0 2016-12-14 22:26:43 +01:00
Nicolás A. Ortega
af79d206d3
Added entry for v0.6 2016-12-14 20:12:46 +01:00
Nicolás A. Ortega
4b034ce5e3
Print more info about the file writing. 2016-12-14 19:34:50 +01:00
Nicolás A. Ortega
f146dbf11c
Able to save found primes to a file afterwards. 2016-12-14 19:28:28 +01:00
Nicolás A. Ortega
656fee720e
Allow user to choose base. 2016-12-14 19:06:33 +01:00
Nicolás A. Ortega
c522196d66
Argument parsing! 2016-12-14 17:52:52 +01:00
Nicolás A. Ortega
b5dcadce19
Added new goal for v0.5 2016-12-14 17:31:36 +01:00
Nicolás A. Ortega
003b94dcdb
Added some more useful docs and stuff. 2016-12-14 16:14:58 +01:00
Nicolás A. Ortega
b414bff9dc
Minor optimization. 2016-12-14 15:55:39 +01:00
Nicolás A. Ortega
d8c81b172b
Print some fun information at the end. 2016-12-14 15:29:06 +01:00
Nicolás A. Ortega
5bbac132bc
Use size_t, which is better for arrays of very large sizes. 2016-12-14 14:13:32 +01:00
Nicolás A. Ortega
2a3e97f4bc
Prepare version number so I don't forget later. 2016-12-13 18:09:05 +01:00
Nicolás A. Ortega
06d5ddb0cc
Fixed problem with the algorithm.
If it's equal to half then we want to check if it's divisible, since if
it's half then it is NOT prime.
2016-12-13 18:05:02 +01:00
Nicolás A. Ortega
5aa0b333c0
Made a fix, because previously it was not measuring primes. 2016-12-13 16:32:10 +01:00
Nicolás A. Ortega
2e9326b5fb
Preparing for v0.4
I'm going to be learning OpenCL, after which I will decide whether to
use OpenCL or OpenMP for the development of Indivisible. This mostly
depends on the compatibility of each library with GMP, especially since
I believe GMP already does some of its own threading.
2016-12-12 23:21:22 +01:00
Nicolás A. Ortega
06cb271dba
Forgot to set that shit to v0.3 2016-12-12 16:20:21 +01:00
Nicolás A. Ortega
dab78093ab
Deleted macros 2016-12-10 17:11:21 +01:00
Nicolás A. Ortega
f4ee9872bc
Optimize the algorithm to avoid numbers larger than half. 2016-12-10 14:46:51 +01:00
Nicolás A. Ortega
dd38b53e31
Fixed leaks. 2016-12-10 11:20:01 +01:00
Nicolás A. Ortega
3c8b9922fb
Shorten the long ass `unsigned long long int' to ulli. 2016-12-10 02:20:57 +01:00
Nicolás A. Ortega
cb9e1648e9
No need to use that macro outside a loop. 2016-12-10 02:09:34 +01:00
Nicolás A. Ortega
30703314dd
Forgot it for the main loop as well. 2016-12-10 01:15:52 +01:00
Nicolás A. Ortega
4905391c82
Add more optimizations. 2016-12-10 00:50:23 +01:00
Nicolás A. Ortega
79a9ba11ff
Switch to C, stop using OpenMP, start using GMP. 2016-12-09 23:02:51 +01:00