Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 16, 2024
1 parent c4f9df2 commit 8a4f8c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cplusplus/src/p0005.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ What is the smallest positive number that is evenly divisible by all of the numb
uint32_t EMSCRIPTEN_KEEPALIVE p0005() {
uint32_t answer = 1;
uint8_t factor_tracker[20] = {0}, local_factor_tracker[20] = {0};
PrimeFactors<uint8_t> pfc;
for (uint8_t i = 2; i < 21; i++) {
pfc = prime_factors(i);
PrimeFactors<uint8_t> pfc = prime_factors<uint8_t>(i);
while (pfc.has_next())
local_factor_tracker[pfc.next()]++;
for (uint8_t i = 2; i < 20; i++) {
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0010.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Find the sum of all the primes below two million.

uint64_t EMSCRIPTEN_KEEPALIVE p0010() {
uint64_t tmp, answer = 0;
PrimeGenerator<uint64_t> pg = primes();
PrimeGenerator<uint64_t> pg = primes<uint64_t>();
while ((tmp = pg.next()) < 2000000)
answer += tmp;
return answer;
Expand Down

0 comments on commit 8a4f8c8

Please sign in to comment.