UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

8 lines (7 loc) 245 B
/** * Generates all primes up to N using the Sieve of Eratosthenes. * @author @dailker * @param {number} n - Upper limit (inclusive). * @returns {number[]} Array of primes. */ export declare function primeSieve(n: number): number[];