@tempots/std

biIsPrime() function

Checks if a given number is prime.

Signature:

biIsPrime: (x: bigint) => boolean

Parameters

Parameter

Type

Description

x

bigint

The number to check for primality.

Returns: boolean

true if the number is prime, false otherwise.