分类目录

链接

2018 年 1 月
1234567
891011121314
15161718192021
22232425262728
293031  

近期文章

热门标签

新人福利,免费薅羊毛

现在位置:    首页 > .NET > 正文
“Sieve of Eratosthenes”算法
.NET 暂无评论 阅读(434)
  1. Print("Sieve of Eratosthenes", Enumerable.Range(1, 9999).Select(num => { return Enumerable.Range(2, num).Count(der => num % der == 0) > 1 ? 1 : num; }).Where(=> p != 1));

============ 欢迎各位老板打赏~ ===========

本文版权归Bruce's Blog所有,转载引用请完整注明以下信息:
本文作者:Bruce
本文地址:“Sieve of Eratosthenes”算法 | Bruce's Blog

发表评论

留言无头像?