• Generates primes up to a given number, using the Sieve of Eratosthenes

    Example

    primes(10); // [2, 3, 5, 7]
    

    Parameters

    • num: number

    Returns number[]

Generated using TypeDoc