Skip to main content
checkPrime - node__crypto.d.ts - Node documentation
function checkPrime

Usage in Deno

```typescript import { checkPrime } from "node:node__crypto.d.ts"; ```
checkPrime(
callback: (
err: Error | null,
result: boolean,
) => void
,
): void
Checks the primality of the `candidate`.

Parameters

callback: (
err: Error | null,
result: boolean,
) => void

Return Type

void
checkPrime(
callback: (
err: Error | null,
result: boolean,
) => void
,
): void

Parameters

callback: (
err: Error | null,
result: boolean,
) => void

Return Type

void