An open API service indexing awesome lists of open source software.

https://github.com/fabiospampinato/crypto-prime-test

A function that deterministically checks if a number is prime.
https://github.com/fabiospampinato/crypto-prime-test

check number prime test

Last synced: 7 days ago
JSON representation

A function that deterministically checks if a number is prime.

Awesome Lists containing this project

README

          

# Crypto Prime Test

A function that deterministically checks if a number is prime.

## Install

```sh
npm install crypto-prime-test
```

## Usage

```ts
import isPrime from 'crypto-prime-test';

// Let's check if a number is prime for sure, deterministically

isPrime ( 465207927154668043n ); // => true
isPrime ( 465207927154668041n ); // => false
```

## License

MIT © Fabio Spampinato