prime-faster-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

prime-faster-ts

A faster prime number generator in TypeScript

Usage

import { primeFaster } from 'prime-faster-ts';

const primes = primeFaster.getPrimes(0, 10000);
console.log(primes);

const n = 1000;
if (primeFaster.isPrime(n)) {
    console.log(`${n} is a prime number`);
} else {
    console.log(`${n} is not a prime number`);
}

Benchmark and Test

$ npm run test

License

MIT License © 2022 Takahashi Akari

Readme

Keywords

Package Sidebar

Install

npm i prime-faster-ts

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.5 kB

Total Files

5

Last publish

Collaborators

  • takahashiakari