To be able to build and run the code, you need to have:
If you do not want to look into details of how to build the source and run the example,
use the script run-demo.sh
with the following parameters:
$ cd abs-api-prime-sieves
$ ./run-demo.sh N M
N = The target to calculate primes up to
M = The number of parallel processes to use
The Prime Sieves uses ABS API which means that either you should have it in a local Maven repository or build it from source. To completely, build the source for Prime Sieves:
- Build ABS API
$ cd ..
$ git clone https://github.com/CrispOSS/abs-api
$ cd abs-api
$ mvn clean install
- Build Prime Sieves
$ cd abs-api-prime-sieves
$ mvn clean install
Prime Sieves using ABS API is the implementation of Prime Sieves using ABS API.
To run the code:
- Configure
run.sh
for the target number - Execute
run.sh