回复 第22楼 的 suckbunny:prime3L starts from odd numbers too. I think the time difference is mainly due to avoidance of unnecessary memory allocations/gcs. Assignment of a subvector can be done in place, whereas assigning a subvector to another variable requires additional memory.