Skip to content

Commit e455441

Browse files
authored
Unused variable warning
1 parent 594360a commit e455441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/Problem007.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ std::vector<std::size_t> primesUpto() // Function that implements the Sieve of E
3434

3535
long long int sqrtLimit = std::sqrt(N) + 1;
3636

37-
for (std::size_t i = 0; i < N; ++i)
37+
for (std::size_t i = 0; i < sqrtLimit; ++i)
3838
{
3939
if (primesList[i])
4040
{

0 commit comments

Comments
 (0)