changgyhub / leetcode_101

LeetCode 101:力扣刷题指南
8.69k stars 1.17k forks source link

P68 计数质数 代码数组越界 #59

Closed h82258652 closed 2 years ago

h82258652 commented 2 years ago

image 声明 prime 数组时长度是 n,但下面循环的条件是 i<= n

changgyhub commented 2 years ago

感谢指正,马上就更新。