摘要: 时间复杂度为O(n)线性筛选n以内的素数, 关键在于if i mod p[j]=0 then break;保证每个数最多被筛选一次。 阅读全文
posted @ 2014-10-28 15:57 Just nOwayOut 阅读(289) 评论(0) 推荐(0) 编辑