Solving Count Primes in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description


Input: 10
Output: 4
Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.

See the full details of the problem Count Primes at LeetCode

Originally posted at: