A robust and efficient engine that could generate Prime Numbers between a range provided by the users.
-
It has the capability to generate 1 to 10 million Prime Numbers under 1 seconds.
-
There are three generations stratergies provided to the user to generate the Prime Numbers.
-
- Sieve of EratosThenes
- Sieve of Sundaram
- Sieve of Atkin
Clone the project
git clone https://github.com/swastik21/Prime-Number-Generator.git
Go to the project directory
cd Prime-Number-Generator
Install dependencies
npm install
Run the Engine
npm run engine
To run tests, run the following command
npm run test
To Start Server, run the following command
npm run server
GET http://localhost:8080/generator
Parameter | Type | Description |
---|---|---|
range |
string |
Required. Provide range |
choice |
string |
Required. Provide choice |
Refer this Link for better understanding the working of the API.
For support, email swastikpoojari21@gmail.com.