首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
no204专题
leetcode No204. Count Primes
Question Count the number of prime numbers less than a non-negative number, n. Algorithm 筛法求素数 Accepted Code python class Solution(object):def countPrimes(self, n):if n<3:return 0primes = [True]
阅读更多...