Sieve coding challenges

Practise sieve with 2 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Medium · 2

Skills you'll practise: Sieve of EratosthenesBoolean arraysSumming primes
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

2 challenges
Medium

List Primes With a Sieve

Find primes up to a limit by marking composite multiples.

You'll learn Sieve of EratosthenesBoolean arrays
Number-theorySieve
No solutions yet
Medium

Sum of Primes Below a Limit

Add all primes strictly below a limit.

You'll learn Sieve of EratosthenesSumming primes
Number-theorySieve
No solutions yet