Skip to main content
checkPrime - crypto - Node documentation
function checkPrime

Usage in Deno

import { checkPrime } from "node:crypto";
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