leaps.ggTRACK YOUR MASTERY →
PROBLEMS/MATH & GEOMETRY/PRIMES / SIEVE OF ERATOSTHENES

Primes / Sieve of Eratosthenes Problems

19 Primes / Sieve of Eratosthenes problems on LeetCode, a Math & Geometry interview pattern, ranked by importance (how often it comes up in real interviews). Difficulty (ELO) and importance shown per problem.

#PROBLEMDIFFELOIMPPATTERNS
1Count PrimesEasy125348
2Minimize Array Sum Using Divisible ReplacementsMedium165243
General Greedy (Greedy is main insight)
3Prime Pairs With Target SumMedium150542
Complement Search (Two Sum Pattern)
4Closest Prime Numbers in RangeMedium165040
Sorting + Comparison
5Split the Array to Make Coprime ProductsHard215938
Frequency Counting / Hash Map Lookup · Reachability / Frontier Greedy
+ 14 more Primes / Sieve of Eratosthenes problems, see all in the explorer →
MORE MATH & GEOMETRY PATTERNS
General MathModular ArithmeticGCD / LCMPrimes / Sieve of EratosthenesCombinatorics
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
What's your Primes / Sieve of Eratosthenes tier?

leaps.gg syncs your LeetCode history, scores your Primes / Sieve of Eratosthenes mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →