Track JavaScript (Legacy)
JavaScript (Legacy) track

Sieve

An exercise from the JavaScript (Legacy) track
medium

About this exercise

Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number.

control flow conditionals
control flow loops
integers
math
recursion
View all solutions