Almost prime: Difference between revisions
Content deleted Content added
=={{header|Racket}}== implementation added |
Updated D entry |
||
Line 132:
assert(number > 1);
} body {
typeof(return) result;
for (
result ~= i;
for (Unqual!T i = 3; n
▲ while (n % i == 0) {
result ~= i;
if (n != 1)
|