/**
* Emulates the PRIMES of Eratosthenes algorithm for finding all prime
* numbers up to a given limit.
* @param max The last number this algorithm will reach.
* @return An array with all prime numbers from 0 to max.
*/exportdeclarefunctionsieveOfEratosthenes(max?: number): number[];