Commit Graph

127 Commits

Author SHA1 Message Date
nortega 23b8d988e8 Added useful comments. 2019-10-08 18:02:45 +02:00
nortega 84687f86c1 Using a better algorithm based on property of primes.
I recently found out that `p` being prime, while `p > 3`, then
`p = 6*k (+/-) 1`.
2019-10-08 17:58:08 +02:00
nortega 2cfc24afb7 Forgot to print 2. 2019-10-08 17:10:39 +02:00
nortega d61ef9b034 Entire OpenMPI library is required. 2019-10-08 15:36:33 +02:00
nortega 23592a98ed Create linked list interface. 2019-09-24 08:20:09 +02:00
nortega fadcafaeaf Begin linking to MPI. 2019-09-24 08:19:47 +02:00
nortega 63e2eda663 Switch to using linked list. 2019-09-24 07:10:12 +02:00
nortega d5fb2b06df New objective for v2.0 2019-09-24 07:07:26 +02:00
nortega 68ac85f3f0 Code refractoring. 2019-09-23 20:44:23 +02:00
nortega 4d470a14de Use the MPI compiler. 2018-10-21 10:24:57 +02:00
nortega 874cc75431 Only test up to the sqrt. 2018-10-19 09:05:46 +02:00
nortega d2e037e357 Added MPI flags. 2018-10-18 15:26:02 +02:00
nortega 90158fb04c Doxygen is no longer in use. 2018-10-18 15:08:29 +02:00
nortega bb26ae9b9f Removed CI file. 2018-10-18 15:07:47 +02:00
nortega 1b0b8fd443 Removed args.h file. 2018-10-18 15:05:33 +02:00
nortega e06e40af3b Implement verbose option. 2018-10-18 15:05:01 +02:00
nortega eaa238a900 Basic prime calculator. 2018-10-18 14:56:15 +02:00
nortega bd3181a1a0 Added linked list. 2018-10-18 12:50:57 +02:00
nortega 89811c1d02 Added new source files. 2018-10-18 12:04:07 +02:00
nortega 01a32c0e52 Fresh new start. 2018-10-18 12:00:32 +02:00
nortega 7aceb7fcc7 Remove CMake policy.
The old policy caused issues because it's about to be lost in the newer
versions of CMake, so we'll have to deal with warnings from CMake until
the FindOpenMP.cmake file is updated.
2017-10-03 16:53:34 +02:00
nortega 3348d52c49 Don't allow writing to the same file. 2017-09-17 05:46:03 +02:00
nortega c73bfd1501 Changing BLOCK_SIZE default and allowing override.
The larger BLOCK_SIZE is the less time it has to spend expanding memory,
the faster it gets.
2017-08-03 12:57:34 -05:00
nortega 2afe144e7f Give install instructions. v1.0.1 2017-03-27 16:22:16 +02:00
nortega a988711918 Fixed progress measurement. 2017-03-16 14:59:53 +01:00
nortega 74a82e2038 Case insensitive. 2017-03-16 14:59:26 +01:00
nortega 659bdeee27 Handle export errors. 2017-02-14 12:57:11 +01:00
nortega d39a51baa2 Add license information to all source files. 2017-02-14 12:49:54 +01:00
nortega 7fa4d9d2bf Added stuff to CHANGELOG for v1.0 v1.0 2017-02-13 17:08:30 +01:00
nortega 6ed153b9e2 Will be disabling merge requests. 2017-02-13 10:09:25 +01:00
nortega c8d1c095ba Clarify. 2017-02-13 09:56:23 +01:00
nortega ae8cbed179 Details... 2017-02-13 09:55:31 +01:00
nortega 69028a15c8 Promote patches. 2017-02-13 09:54:13 +01:00
nortega b20733f3ac Append new primes to the end of a file. 2017-02-13 09:47:47 +01:00
nortega 2b5541d2c3 Fixed some memory leaks. 2017-02-12 19:33:57 +01:00
nortega 94248612ba Find the nth prime. 2017-02-06 18:00:34 +01:00
nortega 8ee18c8c4b Forget it, it's unnecessary. 2017-02-06 17:51:07 +01:00
nortega bdea1979e8 Use inline functions. 2017-02-06 17:50:26 +01:00
nortega a3ec19d47c Cleaned the code. 2017-02-02 19:53:29 +01:00
nortega 22239ec644 Preparing for v1.0 release. 2017-02-02 10:46:34 +01:00
nortega 22278999e7 Fixed algorithm problem. 2017-02-02 10:35:43 +01:00
nortega a5b68282b3 Cancel if `primes.list[i] >= numRoot'.
It has been solved!!!
2017-02-01 23:12:23 +01:00
nortega b9cafadf8e Parallelized, but needs algorithm optimization. 2017-02-01 19:36:05 +01:00
nortega 32076a67cd Remove parallelization code to start anew. 2017-02-01 17:18:03 +01:00
nortega 9673a4da57 Use shared as default. 2017-01-31 22:24:06 +01:00
nortega 76936644cd Almost completely parallelized. 2017-01-31 19:39:35 +01:00
nortega a6ecea514f Restrict will no longer apply to `addToList' 2017-01-17 00:11:51 +01:00
nortega 22c7702cf0 We only need to test up to the sqrt(num). 2017-01-01 17:05:25 +01:00
nortega f8726497a4 Don't test for divisibility by 2.
We skip all even numbers, so we can skip 2, this also means giving 3 as
a given.
2016-12-30 17:57:28 +01:00
nortega 3e902efd18 Small cleanup. 2016-12-30 17:51:48 +01:00