Skip to content

Commit c6f35aa

Browse files
committed
Refactor
1 parent 9713907 commit c6f35aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CountPrintPrimes.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,12 @@ void CountPrintPrimes::printPrimes()
155155
for (; i < size; i += 8)
156156
{
157157
uint64_t bits = littleendian_cast<uint64_t>(&sieve_[i]);
158+
158159
for (; bits != 0; bits &= bits - 1)
159-
stringBuffer_ += std::to_string(nextPrime(bits, low)) + "\n";
160+
{
161+
stringBuffer_ += std::to_string(nextPrime(bits, low));
162+
stringBuffer_ += '\n';
163+
}
160164

161165
low += 8 * 30;
162166
}

0 commit comments

Comments
 (0)