https://github.com/alexvcasillas/erat-o
Eratosthenes primality test implementation
https://github.com/alexvcasillas/erat-o
algorithm eratosthenes javascript math numbers primes
Last synced: about 2 months ago
JSON representation
Eratosthenes primality test implementation
- Host: GitHub
- URL: https://github.com/alexvcasillas/erat-o
- Owner: alexvcasillas
- Created: 2018-06-01T09:16:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-10T18:20:54.000Z (about 4 years ago)
- Last Synced: 2025-03-17T19:55:04.519Z (7 months ago)
- Topics: algorithm, eratosthenes, javascript, math, numbers, primes
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@alexvcasillas/erat-o
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Erat-O
[](https://circleci.com/gh/alexvcasillas/erat-o)
**Erat-O** is the primality test algorithm implementation.
## Installation
NPM
```
npm install @alexvcasillas/erat-o
```YARN
```
yarn add @alexvcasillas/erat-o
```## Usage
```
import { erat } from '@alexvcasillas/erat-o';
const result = erat(20);
console.log(result); // [2, 3, 5, 7, 11, 13, 17, 19]
```