Track Ruby
Ruby track

Sieve

An exercise from the Ruby track
easy

About this exercise

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

integers
algorithms
loops
sorting
math
View all solutions