• Returns whether or not a number is a prime number.

    Parameters

    • num: number

      Number

    Returns boolean

    Example

    // All of the following return true
    Chalkboard.numb.isPrime(73939133);
    Chalkboard.numb.isPrime(7393913);
    Chalkboard.numb.isPrime(739391);
    Chalkboard.numb.isPrime(73939);
    Chalkboard.numb.isPrime(7393);
    Chalkboard.numb.isPrime(739);
    Chalkboard.numb.isPrime(73);
    Chalkboard.numb.isPrime(7);

Generated using TypeDoc