Back to QuestionsPractice with This Question
Count Primes
130.2K views•Asked at Amazon•
Medium
Question Explain
Given an integer $n$, return the number of prime numbers that are strictly less than $n$. Use the Sieve of Eratosthenes algorithm.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.