JavaScript find Prime Numbers implemented with Sieve of Eratosthenes