open-index/open-npm huggingface dataset:
npm package: @alexvcasillas/erat-o
Description: Eratosthenes primality implementation
Author: Alex Casillas
Latest version: 1.0.0

# Erat-O

[![CircleCI](https://circleci.com/gh/alexvcasillas/erat-o.svg?style=svg)](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]
```