CrispOSS / abs-api-prime-sieves

Prime Sieves using ABS API
Apache License 2.0
0 stars 1 forks source link

abs-api-prime-sieves

Requirements

To be able to build and run the code, you need to have:

  1. JDK 1.8
  2. Apache Maven 3.2+

Quick Start

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

Build source

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:

  1. Build ABS API
$ cd ..
$ git clone https://github.com/CrispOSS/abs-api
$ cd abs-api
$ mvn clean install
  1. 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:

  1. Configure run.sh for the target number
  2. Execute run.sh