Primes whose sum of digits is 25: Difference between revisions

Content added Content deleted
m (Minor edit to C++ code)
m (C++ - fixed indentation)
Line 113: Line 113:
} else {
} else {
for (int i = 1; i <= std::min(9, rem); ++i)
for (int i = 1; i <= std::min(9, rem); ++i)
count_all(str + std::to_string(i), rem - i, count);
count_all(str + std::to_string(i), rem - i, count);
}
}
}
}