Numbers whose count of divisors is prime: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Raku}}: Simplify) |
m (C++ - restored accidentally deleted line) |
||
Line 103: | Line 103: | ||
return EXIT_FAILURE; |
return EXIT_FAILURE; |
||
} |
} |
||
int width = static_cast<int>(std::ceil(std::log10(limit))); |
|||
int count = 0; |
|||
for (int i = 1;; ++i) { |
for (int i = 1;; ++i) { |
||
int n = i * i; |
int n = i * i; |